Federico Ressi 9108be7e83 Avoid re-stacking when not necessary
Also adds a swap file of 8GB

Change-Id: I50b7dcb5ca40c9840ae086006c9d868637d3b5d0
2020-10-02 15:39:53 +02:00

30 lines
553 B
YAML

---
- hosts: all
vars:
resolv_conf_file: /etc/resolv.conf
dest_dir: /opt/stack
pre_tasks:
- name: copy '{{ resolv_conf_file}}' file
become: yes
copy:
src: '{{ resolv_conf_file }}'
dest: /etc/resolv.conf
owner: root
group: root
mode: '0644'
- name: update APT database
apt:
update_cache: yes
cache_valid_time: 3600
become: yes
when:
- ansible_os_family == 'Debian'
roles:
- devstack-tobiko-deploy
- devstack-tobiko-run-tests