websoft9/apps/roles/ansible/tasks/main.yml
2022-07-28 08:30:50 +08:00

17 lines
564 B
YAML

- name: Unnstall ansible on host
shell: rpm -e ansible
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "ansible"
- name: Unnstall ansible on host
shell: |
alias ansible='docker exec -it ansible ansible'
alias ansible-playbook='docker exec -it ansible ansible-playbook'
echo "alias ansible='docker exec -it ansible ansible'" >> /etc/profile.d/ansible.sh
echo "alias ansible-playbook='docker exec -it ansible ansible-playbook'" >> /etc/profile.d/ansible.sh
source /etc/profile.d/ansible.sh