您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213
  1. ---
  2. - hosts: all
  3. sudo: yes
  4. vars:
  5. packages: [rsync, git]
  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