Skip to content

Commit

Permalink
SUSE: Remove lxc-1.X.X workarounds
Browse files Browse the repository at this point in the history
openSUSE is now using lxc-2.X.X from the OBS repository in the
lxc_hosts role so there is no need to have the lxc-1.X.X workarounds
anymore.

Change-Id: I5a1de489df2dff21c262ec5bcea709d1c719a6af
  • Loading branch information
Markos Chandras committed Oct 5, 2017
1 parent 0739b91 commit a955c0b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions playbooks/common-tasks/os-lxc-container-setup.yml
Expand Up @@ -91,16 +91,11 @@
# Due to https://github.com/ansible/ansible-modules-extras/issues/2691
# this uses the LXC CLI tools to ensure that we get logging.
# TODO(odyssey4me): revisit this once the bug is fixed and released
# NOTE(hwoarang): We pass the timeout (-t) option on openSUSE due to
# https://bugzilla.opensuse.org/show_bug.cgi?id=1054609. Feel free to
# remove this workaround when the bug is closed or lxc-2.X.X becomes the
# default on openSUSE.
- name: Lxc container restart
command: >
lxc-stop --name {{ inventory_hostname }}
--logfile {{ lxc_container_log_path }}/lxc-{{ inventory_hostname }}.log
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
"{{ (hostvars[physical_host]['ansible_pkg_mgr'] == 'zypper') | ternary('-t 10', '') }}"
delegate_to: "{{ physical_host }}"
register: container_stop
until: container_stop | success
Expand Down

0 comments on commit a955c0b

Please sign in to comment.