diff --git a/tasks/main.yml b/tasks/main.yml index 9e26593b..c34592b9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,13 +25,46 @@ - always - include: openstack_kernel_check.yml + tags: + - openstack_hosts-install + - include: openstack_proxy_settings.yml + tags: + - openstack_hosts-install + - openstack_hosts-config + - include: openstack_host_install.yml + tags: + - openstack_hosts-install + - include: openstack_sysstat.yml + tags: + - openstack_hosts-install + - openstack_hosts-config + - include: openstack_update_hosts_file.yml when: openstack_host_manage_hosts_file | bool + tags: + - openstack_hosts-install + - openstack_hosts-config + - include: openstack_lvm_config.yml + tags: + - openstack_hosts-install + - openstack_hosts-config + - include: openstack_kernel_modules.yml + tags: + - openstack_hosts-config + - include: openstack_kernel_tuning.yml + tags: + - openstack_hosts-config + - include: openstack_authorized_keys.yml + tags: + - openstack_hosts-config + - include: openstack_release.yml + tags: + - openstack_hosts-install diff --git a/tasks/openstack_authorized_keys.yml b/tasks/openstack_authorized_keys.yml index 810ffd70..e5a6afa6 100644 --- a/tasks/openstack_authorized_keys.yml +++ b/tasks/openstack_authorized_keys.yml @@ -20,8 +20,6 @@ group: "{{ ansible_user_id }}" owner: "{{ ansible_user_id }}" mode: "0755" - tags: - - openstack-host-keys - name: Update SSH keys get_url: @@ -29,8 +27,6 @@ dest: "{{ ansible_env.HOME }}/.ssh/remotekeys" mode: "0640" when: ssh_key_url is defined - tags: - - openstack-host-keys - name: Ensure all keys in authorized_keys shell: | @@ -40,5 +36,3 @@ fi done < /root/.ssh/remotekeys when: ssh_key_url is defined - tags: - - openstack-host-keys diff --git a/tasks/openstack_host_install.yml b/tasks/openstack_host_install.yml index 8337ae71..9c85bec2 100644 --- a/tasks/openstack_host_install.yml +++ b/tasks/openstack_host_install.yml @@ -16,11 +16,7 @@ - include: openstack_host_install_apt.yml when: - ansible_pkg_mgr == 'apt' - tags: - - install-apt - include: openstack_host_install_yum.yml when: - ansible_pkg_mgr == 'yum' - tags: - - install-yum \ No newline at end of file diff --git a/tasks/openstack_kernel_check.yml b/tasks/openstack_kernel_check.yml index 8deab5ec..a96c48bf 100644 --- a/tasks/openstack_kernel_check.yml +++ b/tasks/openstack_kernel_check.yml @@ -20,5 +20,3 @@ [ {{ ansible_kernel }} < {{ openstack_host_required_kernel }} ] Resolve this issue before continuing. when: ansible_kernel | version_compare(openstack_host_required_kernel, '<') - tags: - - openstack-host-kernel-check diff --git a/tasks/openstack_kernel_modules.yml b/tasks/openstack_kernel_modules.yml index df507a4b..f578042a 100644 --- a/tasks/openstack_kernel_modules.yml +++ b/tasks/openstack_kernel_modules.yml @@ -18,8 +18,6 @@ name: "{{ item }}" with_items: openstack_host_kernel_modules when: openstack_host_kernel_modules is defined and item != '' - tags: - - openstack-host-kernel-modules - name: "Ensure kernel module(s) loaded at boot" lineinfile: @@ -27,14 +25,10 @@ line: "{{ item }}" with_items: openstack_host_kernel_modules when: openstack_host_kernel_modules is defined and item != '' - tags: - - openstack-host-kernel-modules - name: get kernel release command: "uname -r" register: uname - tags: - - openstack-host-specific-kernel-modules - name: check how kernel modules are implemented (statically builtin, dynamic, not set) shell: grep {{ item.pattern }} /boot/config-{{ uname.stdout}} @@ -44,8 +38,6 @@ - openstack_host_specific_kernel_modules is defined - inventory_hostname in groups["{{ item.group }}"] ignore_errors: yes - tags: - - openstack-host-specific-kernel-modules - name: fail if a specific kernel module is not set fail: @@ -54,8 +46,6 @@ - modules['changed'] | bool - "'is not set' in item['stdout']" with_items: modules["results"] - tags: - - openstack-host-specific-kernel-modules - name: fail if a specific pattern is not valid fail: @@ -65,8 +55,6 @@ - "'=y' not in item['stdout']" - "'=m' not in item['stdout']" with_items: modules["results"] - tags: - - openstack-host-specific-kernel-modules - name: "Ensure dynamic specific kernel module(s) are loaded" modprobe: @@ -76,8 +64,6 @@ - modules['changed'] | bool - inventory_hostname in groups[item["item"]["group"]] - "'=m' in item['stdout']" - tags: - - openstack-host-specific-kernel-modules - name: "Ensure dynamic specific kernel module(s) loaded at boot" lineinfile: @@ -88,5 +74,3 @@ - modules['changed'] | bool - inventory_hostname in groups[item["item"]["group"]] - "'=m' in item['stdout']" - tags: - - openstack-host-specific-kernel-modules diff --git a/tasks/openstack_kernel_tuning.yml b/tasks/openstack_kernel_tuning.yml index 22d7bd13..d47c1f1c 100644 --- a/tasks/openstack_kernel_tuning.yml +++ b/tasks/openstack_kernel_tuning.yml @@ -22,5 +22,3 @@ reload: "{{ item.reload|default('yes') }}" with_items: openstack_kernel_options ignore_errors: true - tags: - - openstack-host-kernel-tuning diff --git a/tasks/openstack_lvm_config.yml b/tasks/openstack_lvm_config.yml index 01af7dd1..60de1adf 100644 --- a/tasks/openstack_lvm_config.yml +++ b/tasks/openstack_lvm_config.yml @@ -19,16 +19,12 @@ register: lvm_devices changed_when: lvm_devices.rc != 0 failed_when: false - tags: - - openstack-host-lvm-config - name: Ensure "/etc/lvm" directory file: state: "directory" path: "/etc/lvm" when: lvm_devices.rc == 0 - tags: - - openstack-host-lvm-config - name: Drop lvm Config template: @@ -38,5 +34,3 @@ group: "root" backup: "yes" when: lvm_devices.rc == 0 - tags: - - openstack-host-lvm-config diff --git a/tasks/openstack_proxy_settings.yml b/tasks/openstack_proxy_settings.yml index deec406c..bfc122a4 100644 --- a/tasks/openstack_proxy_settings.yml +++ b/tasks/openstack_proxy_settings.yml @@ -18,5 +18,3 @@ dest: "/etc/environment" src: "environment.j2" mode: "0644" - tags: - - openstack-host-proxies diff --git a/tasks/openstack_release.yml b/tasks/openstack_release.yml index 52c0bd99..0d386f6e 100644 --- a/tasks/openstack_release.yml +++ b/tasks/openstack_release.yml @@ -19,5 +19,3 @@ dest: "/etc/openstack-release" owner: "root" group: "root" - tags: - - openstack-release diff --git a/tasks/openstack_sysstat.yml b/tasks/openstack_sysstat.yml index 24dacedf..640bfc11 100644 --- a/tasks/openstack_sysstat.yml +++ b/tasks/openstack_sysstat.yml @@ -23,5 +23,3 @@ - { src: "sysstat.cron.j2", dest: "/etc/cron.d/sysstat", mode: "0755" } when: openstack_host_sysstat_enabled | bool notify: Restart sysstat - tags: - - openstack-host-sysstat diff --git a/tasks/openstack_update_hosts_file.yml b/tasks/openstack_update_hosts_file.yml index 7023d627..e9e4737b 100644 --- a/tasks/openstack_update_hosts_file.yml +++ b/tasks/openstack_update_hosts_file.yml @@ -18,10 +18,6 @@ src: "openstack-host-hostfile-setup.sh.j2" dest: "/usr/local/bin/openstack-host-hostfile-setup.sh" mode: "0755" - tags: - - openstack-host-hostfile - name: Update hosts file command: "/usr/local/bin/openstack-host-hostfile-setup.sh" - tags: - - openstack-host-hostfile