|
@@ -1,12 +1,13 @@ |
|
|
--- |
|
|
--- |
|
|
- hosts: all |
|
|
- hosts: all |
|
|
sudo: yes |
|
|
sudo: yes |
|
|
|
|
|
vars: |
|
|
|
|
|
packages: [rsync, git] |
|
|
tasks: |
|
|
tasks: |
|
|
- name: Install packages |
|
|
- name: Install packages |
|
|
action: pacman pkg={{ item }} state=installed |
|
|
action: pacman pkg={{ item }} state=installed |
|
|
with_items: |
|
|
|
|
|
- rsync |
|
|
|
|
|
- git |
|
|
|
|
|
|
|
|
with_items: packages |
|
|
|
|
|
when: ansible_os_family == "Archlinux" |
|
|
# handlers: |
|
|
# handlers: |
|
|
# - name: restart ntpd |
|
|
# - name: restart ntpd |
|
|
# action: service name=ntpd state=restarted |
|
|
# action: service name=ntpd state=restarted |