00-general-pre-flight.yml 647 B

123456789101112131415161718192021222324
  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.
  8. become: yes
  9. ansible.builtin.yum:
  10. name:
  11. - ansible-collection-ansible-posix
  12. - ansible-collection-community-crypto
  13. - ansible-collection-community-general
  14. - ansible-collection-containers-podman
  15. state: present
  16. - name: Remove Google from resolv.conf
  17. become: yes
  18. ansible.builtin.lineinfile:
  19. path: /etc/resolv.conf
  20. line: "nameserver 8.8.8.8"
  21. state: absent
  22. ...