From c52fb3bb5454b8c38d11f892bab828dcb009592c Mon Sep 17 00:00:00 2001 From: Roman Schiwy Date: Tue, 31 Aug 2021 14:18:24 +0200 Subject: [PATCH] restrucuted tasks --- local.yml | 14 +++++--------- tasks/packages.yml | 8 ++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 tasks/packages.yml diff --git a/local.yml b/local.yml index b1b4bc2..bbd7c78 100644 --- a/local.yml +++ b/local.yml @@ -3,13 +3,9 @@ - hosts: localhost connection: local become: true - tasks: + pre_tasks: - - name: install packages - package: - name: - - htop - - mc - - tmux - state: latest - update_cache: yes \ No newline at end of file + - name: update repositories + apt: + update_cache: yes + changed_when: false \ No newline at end of file diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..c7b47ec --- /dev/null +++ b/tasks/packages.yml @@ -0,0 +1,8 @@ + - name: install packages + package: + name: + - htop + - mc + - tmux + state: latest + update_cache: yes \ No newline at end of file