This commit is contained in:
willtome
2023-03-06 12:07:06 -05:00
parent b670b6e780
commit 5f9bbf98ba
133 changed files with 27 additions and 3437 deletions

View File

@@ -0,0 +1,31 @@
---
- name: application deployment
hosts: "{{ HOSTS }}"
gather_facts: false
become: true
tasks:
- name: make sure application is not empty
assert:
that:
- "application != ''"
- name: printing to terminal application information
debug:
msg: "This Ansible Playbook will install {{application}}"
- name: install application
dnf:
name: "{{application}}"
allow_downgrade: true
register: result
- name: printing to terminal application information
debug:
msg: "The application: {{application}} has been installed"
when: result.changed|bool
- name: printing to terminal application information
debug:
msg: "The application: {{application}} was already installed"
when: not result.changed|bool