00-general-pre-flight.yml 764 B

1234567891011121314151617181920212223242526
  1. ---
  2. - name: Ensure workstation has the collections it needs.
  3. hosts: workstation.lab.example.com
  4. become: no
  5. gather_facts: no
  6. tasks:
  7. - name: Install the required collections (and other packages).
  8. become: yes
  9. ansible.builtin.yum:
  10. name:
  11. - ansible-collection-ansible-posix
  12. - python3-netaddr
  13. - ansible-collection-ansible-utils
  14. - ansible-collection-community-crypto
  15. - ansible-collection-community-general
  16. - ansible-collection-containers-podman
  17. - fuse-sshfs
  18. state: present
  19. - name: Remove Google from resolv.conf.
  20. become: yes
  21. ansible.builtin.lineinfile:
  22. path: /etc/resolv.conf
  23. line: "nameserver 8.8.8.8"
  24. state: absent
  25. ...