requirements_openstack.yml 587 B

12345678910111213141516171819
  1. ---
  2. - name: apply nextcloud role
  3. collections:
  4. - community.general
  5. - ansible.posix
  6. hosts: all
  7. vars:
  8. ansible_python_interpreter: /usr/bin/python3
  9. pre_tasks:
  10. - name: install stuffs to be integrated later in salt
  11. dnf:
  12. name: ['epel-release', 'policycoreutils-python-utils', 'python3-cryptography', 'libselinux-python3', 'bzip2']
  13. state: present
  14. when: ansible_distribution == 'Rocky'
  15. - name: add hostname in hosts
  16. blockinfile:
  17. dest: /etc/hosts
  18. content: '{{ ansible_host }} {{ ansible_fqdn }}'
  19. state: present