install dbus and cache update cache where needed
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
627d5107cc
commit
5f3a3bafda
@ -19,8 +19,18 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
listen: check connection
|
listen: check connection
|
||||||
|
|
||||||
- name: Set local facts for new container(s)
|
- name: Gather facts for new container(s)
|
||||||
setup:
|
setup:
|
||||||
filter: ansible_local
|
|
||||||
gather_subset: "!all"
|
gather_subset: "!all"
|
||||||
listen: check connection
|
listen: check connection
|
||||||
|
|
||||||
|
- name: Ensure dbus is installed
|
||||||
|
package:
|
||||||
|
name: "{{ nspawn_dbus_package }}"
|
||||||
|
state: present
|
||||||
|
update_cache: "{{ ansible_pkg_mgr in ['apt', 'zypper'] }}"
|
||||||
|
register: dbus_install
|
||||||
|
retries: 5
|
||||||
|
delay: 3
|
||||||
|
until: dbus_install | success
|
||||||
|
listen: check connection
|
||||||
|
@ -23,7 +23,6 @@ nspawn_map:
|
|||||||
# the container create process will ensure the file is not present within the
|
# the container create process will ensure the file is not present within the
|
||||||
# contianer prior to writting the config.
|
# contianer prior to writting the config.
|
||||||
nspawn_read_only_host_bindmount:
|
nspawn_read_only_host_bindmount:
|
||||||
- { source: /etc/resolv.conf, dest: /etc/resolv.conf }
|
|
||||||
- { source: /etc/environment, dest: /etc/environment }
|
- { source: /etc/environment, dest: /etc/environment }
|
||||||
- { source: /etc/localtime, dest: /etc/localtime }
|
- { source: /etc/localtime, dest: /etc/localtime }
|
||||||
|
|
||||||
@ -33,3 +32,6 @@ nspawn_shared_host_bindmount:
|
|||||||
- /etc/yum
|
- /etc/yum
|
||||||
- /root
|
- /root
|
||||||
- /opt
|
- /opt
|
||||||
|
|
||||||
|
nspawn_dbus_package:
|
||||||
|
- dbus
|
||||||
|
@ -23,7 +23,6 @@ nspawn_map:
|
|||||||
# the container create process will ensure the file is not present within the
|
# the container create process will ensure the file is not present within the
|
||||||
# contianer prior to writting the config.
|
# contianer prior to writting the config.
|
||||||
nspawn_read_only_host_bindmount:
|
nspawn_read_only_host_bindmount:
|
||||||
- { source: /etc/resolv.conf, dest: /etc/resolv.conf }
|
|
||||||
- { source: /etc/environment, dest: /etc/environment }
|
- { source: /etc/environment, dest: /etc/environment }
|
||||||
- { source: /etc/localtime, dest: /etc/localtime }
|
- { source: /etc/localtime, dest: /etc/localtime }
|
||||||
|
|
||||||
@ -33,3 +32,6 @@ nspawn_shared_host_bindmount:
|
|||||||
- /etc/apt
|
- /etc/apt
|
||||||
- /root
|
- /root
|
||||||
- /opt
|
- /opt
|
||||||
|
|
||||||
|
nspawn_dbus_package:
|
||||||
|
- dbus
|
||||||
|
Loading…
Reference in New Issue
Block a user