diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/prerequisites/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/prerequisites/tasks/main.yml b/roles/prerequisites/tasks/main.yml new file mode 100644 index 0000000..b1f4215 --- /dev/null +++ b/roles/prerequisites/tasks/main.yml @@ -0,0 +1,17 @@ +--- + +- name: retrieve python installation + ansible.builtin.raw: command -v python3 + register: prerequisites_register_python_present + changed_when: prerequisites_register_python_present.rc != 0 + +- name: bruteforce python installation with all packages possiblity + ansible.builtin.raw: | + ! pkg_add python3 && + ! pkg install python3 && + ! apk add python + register: result + ignore_errors: true + failed_when: result.rc not in [0, 1] + poll: 0 + when: prerequisites_register_python_present.rc != 0 |