websoft9/apps/roles/ansible/tasks/main.yml

17 lines
564 B
YAML
Raw Normal View History

2022-07-28 08:27:14 +08:00
- name: Unnstall ansible on host
shell: rpm -e ansible
2022-07-15 10:38:13 +08:00
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
2022-07-25 10:39:02 +08:00
app: "ansible"
2022-07-28 08:30:50 +08:00
- 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