You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
315 B

  1. ---
  2. - hosts: all
  3. sudo: yes
  4. vars:
  5. packages: [rsync, git, htop]
  6. tasks:
  7. - name: install packages
  8. action: pacman pkg={{ item }} state=installed
  9. with_items: packages
  10. when: ansible_os_family == "Archlinux"
  11. # handlers:
  12. # - name: restart ntpd
  13. # action: service name=ntpd state=restarted