Update main.yml
This commit is contained in:
parent
725d4ba89a
commit
9d17dcfe83
1 changed files with 10 additions and 4 deletions
|
@ -77,16 +77,22 @@
|
|||
- name: Install snap tools
|
||||
yum:
|
||||
name: snapd
|
||||
update_cache: yes
|
||||
|
||||
update_cache: yes
|
||||
when:
|
||||
- name: Install snap tools
|
||||
apt:
|
||||
name: snapd
|
||||
update_cache: yes
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: enable and create link for snap and install yq
|
||||
shell: |
|
||||
systemctl enable --now snapd.socket
|
||||
ln -sf /var/lib/snapd/snap /snap
|
||||
snap install yq
|
||||
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
# Install docker
|
||||
|
||||
- name: Install Docker on {{ansible_distribution}}
|
||||
shell: |
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue