Update ansible code
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
e33e55cd8c
commit
d8e47cba66
8 changed files with 39 additions and 39 deletions
|
|
@ -1,30 +1,30 @@
|
|||
---
|
||||
- name: Remove Ansible's files
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/etc/yum.repos.d/ansible.repo"
|
||||
state: absent
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Registering Ubuntu Ansible repository
|
||||
apt_repository:
|
||||
ansible.builtin.apt_repository:
|
||||
repo: ppa:ansible/ansible
|
||||
state: absent
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
when:
|
||||
- ansible_distribution == "Ubuntu"
|
||||
|
||||
- name: Registering Debian Ansible repository
|
||||
apt_repository:
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb http://ppa.launchpad.net/ansible/ansible/ubuntu {{ ansible_distribution_name }} main
|
||||
filename: ansible.list
|
||||
state: absent
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
when:
|
||||
- ansible_distribution == "Debian"
|
||||
|
||||
- name: Remove Ansible's packages
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name: '{{ ansible_packages }}'
|
||||
state: absent
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue