diff --git a/tasks/nova_post_install.yml b/tasks/nova_post_install.yml index 37ef3d87..817cd769 100644 --- a/tasks/nova_post_install.yml +++ b/tasks/nova_post_install.yml @@ -76,3 +76,14 @@ - not nova_venv_enabled | bool tags: - nova-command-bin + +- name: Drop sudoers file + template: + src: "sudoers.j2" + dest: "/etc/sudoers.d/{{ nova_system_user_name }}_sudoers" + mode: "0440" + owner: "root" + group: "root" + tags: + - sudoers + - nova-sudoers diff --git a/tasks/nova_pre_install.yml b/tasks/nova_pre_install.yml index 8f66a0da..d1000674 100644 --- a/tasks/nova_pre_install.yml +++ b/tasks/nova_pre_install.yml @@ -111,17 +111,6 @@ - nova-dirs - nova-logs -- name: Drop sudoers file - template: - src: "sudoers.j2" - dest: "/etc/sudoers.d/{{ nova_system_user_name }}_sudoers" - mode: "0440" - owner: "root" - group: "root" - tags: - - sudoers - - nova-sudoers - - include: nova_messaging_setup.yml when: > inventory_hostname == groups['nova_all'][0]