Commit 2fdc528c authored by Łukasz Nowak's avatar Łukasz Nowak

playbook: Use slapos_ansible_offline when needed

All network access shall be protected if Ansible is run in offline mode.
parent 1553783c
......@@ -12,7 +12,7 @@
- name: Install packages using apt
apt: name=slapos-node state=present update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian"
when: ansible_os_family == "Debian" and not slapos_ansible_offline
- name: Uninstall firewalld on CentOS
yum: name=firewalld state=absent update_cache=yes
......@@ -20,18 +20,18 @@
- name: Install re6stnet on CentOS
yum: name=slapos.node state=present update_cache=yes
when: ansible_distribution == "CentOS" and ansible_distribution_major_version != "7"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version != "7" and not slapos_ansible_offline
- name: Download slapos.node from Shacache for CentOS 7
get_url:
url: http://download.shacache.org/2ad0622eff0aa0ec3a0e8d872ca948013d216d8fc837ef0f9919290afc9372319881715764987350302172022e288d4d58f31f71980071d652d66d293533da7b
dest: /tmp/slapos.node-1.0.56-2.1.x86_64.rpm
checksum: "md5:37446cc16b38fa5769f3e084294c8683"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" and not slapos_ansible_offline
- name: Install re6stnet on CentOS 7
yum: name=/tmp/slapos.node-1.0.56-2.1.x86_64.rpm state=present update_cache=yes
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" and not slapos_ansible_offline
- name: Check if configuration exists already
stat: path=/etc/opt/slapos/slapos.cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment