diff --git a/local.yml b/local.yml index 1f494ce..db15537 100644 --- a/local.yml +++ b/local.yml @@ -2,7 +2,11 @@ connection: local become: true + pre-task: + name: Update repository + pacman: + update_cache: yes + changed_when: False + tasks: - - name: Install htop - pacman: - name: htop + - include: tasks/packages.yml diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..1f494ce --- /dev/null +++ b/tasks/packages.yml @@ -0,0 +1,8 @@ +- hosts: localhost + connection: local + become: true + + tasks: + - name: Install htop + pacman: + name: htop