From 97bfb6467856809a7a5046d0f1fe5bf2519b4db3 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Mon, 16 Dec 2024 19:57:46 +0500 Subject: [PATCH] Simplify common playbook, add more packages --- common.yml | 14 +++++++++++--- roles/common/tasks/editor.yml | 5 ----- roles/common/tasks/main.yml | 2 -- 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 roles/common/tasks/editor.yml delete mode 100644 roles/common/tasks/main.yml diff --git a/common.yml b/common.yml index 6c50a4d..802e108 100644 --- a/common.yml +++ b/common.yml @@ -1,6 +1,14 @@ --- -- hosts: +- hosts: - network - webservers - roles: - - role: common + tasks: + - name: Install vim, curl and htop + become: true + ansible.builtin.apt: + pkg: + - vim + - htop + - curl + update_cache: yes + cache_valid_time: 86400 # 1 day diff --git a/roles/common/tasks/editor.yml b/roles/common/tasks/editor.yml deleted file mode 100644 index 2d231ad..0000000 --- a/roles/common/tasks/editor.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Install vim - become: true - ansible.builtin.apt: - name: vim diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml deleted file mode 100644 index 0ce9bab..0000000 --- a/roles/common/tasks/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -- import_tasks: editor.yml