diff --git a/defaults/main.yml b/defaults/main.yml index ec34cbf82141fdf177cf14f1b9bf8d1d0cb3bb3e..d1e4f9f129957ab545fc880a9e249f242e0b3bf9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ ansible_prerequirements_packages: - - python2 + - python - lsb-release diff --git a/tasks/main.yml b/tasks/main.yml index 216b7662fe13a6034d6111a4daea1c86d9a91572..e12705c0c570bb1bb9a86f066e8dea6688bc85ca 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,3 +8,10 @@ with_items: '{{ ansible_prerequirements_packages }}' register: command_res changed_when: "'there is nothing to do' not in command_res.stdout" + +- name: PREREQUIREMENTS | Gather facts + setup: null + +- name: PEREQUIREMENTS | Update inventory + set_fact: + ansible_python_interpreter: python3