diff options
Diffstat (limited to 'xci/playbooks')
-rw-r--r-- | xci/playbooks/configure-opnfvhost.yml | 14 | ||||
-rw-r--r-- | xci/playbooks/roles/synchronize-time/tasks/main.yml | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/xci/playbooks/configure-opnfvhost.yml b/xci/playbooks/configure-opnfvhost.yml index 76f8f06e..3ba2ae12 100644 --- a/xci/playbooks/configure-opnfvhost.yml +++ b/xci/playbooks/configure-opnfvhost.yml @@ -9,19 +9,6 @@ ############################################################################## - hosts: opnfv remote_user: root - become: yes - vars_files: - - ../var/flavor-vars.yml - - ../var/opnfv.yml - pre_tasks: - - name: Load distribution variables - include_vars: - file: ../var/{{ ansible_os_family }}.yml - roles: - - role: remove-folders - -- hosts: opnfv - remote_user: root vars_files: - ../var/flavor-vars.yml - ../var/opnfv.yml @@ -130,6 +117,7 @@ file: path: "/etc/ssl/certs" state: directory + when: ansible_pkg_mgr != 'zypper' - name: create key directory /etc/ssl/private file: path: "/etc/ssl/private" diff --git a/xci/playbooks/roles/synchronize-time/tasks/main.yml b/xci/playbooks/roles/synchronize-time/tasks/main.yml index cc73c447..8f94d33f 100644 --- a/xci/playbooks/roles/synchronize-time/tasks/main.yml +++ b/xci/playbooks/roles/synchronize-time/tasks/main.yml @@ -13,7 +13,7 @@ state: latest - name: restart chrony service: - name: chrony + name: "{{ (ansible_pkg_mgr == 'apt') | ternary('chrony', 'chronyd') }}" state: restarted - name: synchronize time shell: "chronyc -a 'burst 4/4' && chronyc -a makestep" |