Auto-fix usage of modules via FQCN
Since ansible-core 2.10 it is recommended to use modules via FQCN In order to align with recommendation, we perform migration by applying suggestions made by `ansible-lint --fix=fqcn` Change-Id: Ib3dafb476992c0c75ae1b3cc84024463641a0775
This commit is contained in:
parent
a6d3897090
commit
9ad3fd7681
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Restart ironic services
|
- name: Restart ironic services
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "{{ item.service_name }}"
|
name: "{{ item.service_name }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: true
|
enabled: true
|
||||||
@ -26,7 +26,7 @@
|
|||||||
- "cert installed"
|
- "cert installed"
|
||||||
|
|
||||||
- name: Restart tftpd
|
- name: Restart tftpd
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "{{ ironic_tftpd_service_name }}"
|
name: "{{ ironic_tftpd_service_name }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: true
|
enabled: true
|
||||||
@ -34,19 +34,19 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Restart isc-dhcp-server
|
- name: Restart isc-dhcp-server
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "isc-dhcp-server"
|
name: "isc-dhcp-server"
|
||||||
state: restarted
|
state: restarted
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Restart ironic-inspector-dnsmasq
|
- name: Restart ironic-inspector-dnsmasq
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "ironic-inspector-dnsmasq"
|
name: "ironic-inspector-dnsmasq"
|
||||||
state: restarted
|
state: restarted
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Restart web server
|
- name: Restart web server
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "nginx"
|
name: "nginx"
|
||||||
enabled: true
|
enabled: true
|
||||||
state: restarted
|
state: restarted
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Copy in sample dhcpd.conf file
|
- name: Copy in sample dhcpd.conf file
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "dhcpd.conf"
|
src: "dhcpd.conf"
|
||||||
dest: "/etc/dhcp/"
|
dest: "/etc/dhcp/"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -23,7 +23,7 @@
|
|||||||
- Restart isc-dhcp-server
|
- Restart isc-dhcp-server
|
||||||
|
|
||||||
- name: Create tftpboot path
|
- name: Create tftpboot path
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ ironic_tftpd_root }}"
|
path: "{{ ironic_tftpd_root }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ ironic_system_user_name }}"
|
owner: "{{ ironic_system_user_name }}"
|
||||||
@ -31,7 +31,7 @@
|
|||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Copy in tftpd-hpa config file
|
- name: Copy in tftpd-hpa config file
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "tftpd-hpa.j2"
|
src: "tftpd-hpa.j2"
|
||||||
dest: "/etc/default/tftpd-hpa"
|
dest: "/etc/default/tftpd-hpa"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -41,7 +41,7 @@
|
|||||||
- Restart tftpd
|
- Restart tftpd
|
||||||
|
|
||||||
- name: Copy in tftpd map file
|
- name: Copy in tftpd map file
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "map-file"
|
src: "map-file"
|
||||||
dest: "{{ ironic_tftpd_root }}/map-file"
|
dest: "{{ ironic_tftpd_root }}/map-file"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -49,7 +49,7 @@
|
|||||||
- Restart tftpd
|
- Restart tftpd
|
||||||
|
|
||||||
- name: Copy library modules into tftpboot
|
- name: Copy library modules into tftpboot
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ ironic_tftpd_root }}/"
|
dest: "{{ ironic_tftpd_root }}/"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
@ -57,13 +57,13 @@
|
|||||||
with_items: "{{ ironic_library_modules_paths }}"
|
with_items: "{{ ironic_library_modules_paths }}"
|
||||||
|
|
||||||
- name: Ensure grub directory exists in tftpboot
|
- name: Ensure grub directory exists in tftpboot
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ ironic_grub_dir }}"
|
path: "{{ ironic_grub_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
recurse: true
|
recurse: true
|
||||||
|
|
||||||
- name: Copy PXE grub config into tftpboot
|
- name: Copy PXE grub config into tftpboot
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "grub.conf"
|
src: "grub.conf"
|
||||||
dest: "{{ ironic_grub_dir }}/grub.cfg"
|
dest: "{{ ironic_grub_dir }}/grub.cfg"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -71,7 +71,7 @@
|
|||||||
group: "ironic"
|
group: "ironic"
|
||||||
|
|
||||||
- name: Copy content into tftpboot (files)
|
- name: Copy content into tftpboot (files)
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item.path }}"
|
src: "{{ item.path }}"
|
||||||
dest: "{{ ironic_tftpd_root }}/{{ item.name }}"
|
dest: "{{ ironic_tftpd_root }}/{{ item.name }}"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
@ -79,20 +79,20 @@
|
|||||||
with_items: "{{ (ironic_uefi_modules + ironic_tftp_extra_content) | selectattr('path', 'defined') | list }}"
|
with_items: "{{ (ironic_uefi_modules + ironic_tftp_extra_content) | selectattr('path', 'defined') | list }}"
|
||||||
|
|
||||||
- name: Copy content into tftpboot (urls)
|
- name: Copy content into tftpboot (urls)
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
dest: "{{ ironic_tftpd_root }}/{{ item.name }}"
|
dest: "{{ ironic_tftpd_root }}/{{ item.name }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
with_items: "{{ (ironic_uefi_modules + ironic_tftp_extra_content) | selectattr('url', 'defined') | list }}"
|
with_items: "{{ (ironic_uefi_modules + ironic_tftp_extra_content) | selectattr('url', 'defined') | list }}"
|
||||||
|
|
||||||
- name: Start up tftp
|
- name: Start up tftp
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "{{ ironic_tftpd_service_name }}"
|
name: "{{ ironic_tftpd_service_name }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: Disable default nginx configuration
|
- name: Disable default nginx configuration
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/nginx/sites-enabled/default
|
path: /etc/nginx/sites-enabled/default
|
||||||
state: absent
|
state: absent
|
||||||
when: "ironic_ipxe_enabled | bool"
|
when: "ironic_ipxe_enabled | bool"
|
||||||
@ -100,7 +100,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Remove default nginx config
|
- name: Remove default nginx config
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/nginx/conf.d/default.conf
|
path: /etc/nginx/conf.d/default.conf
|
||||||
state: absent
|
state: absent
|
||||||
when: "ironic_ipxe_enabled | bool"
|
when: "ironic_ipxe_enabled | bool"
|
||||||
@ -108,7 +108,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Ensure nginx configuration directories exist
|
- name: Ensure nginx configuration directories exist
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
@ -117,7 +117,7 @@
|
|||||||
- "/etc/nginx/{{ ironic_nginx_conf_path }}"
|
- "/etc/nginx/{{ ironic_nginx_conf_path }}"
|
||||||
|
|
||||||
- name: Write alternate nginx.conf for rh like systems
|
- name: Write alternate nginx.conf for rh like systems
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: nginx-nodefault.conf.j2
|
src: nginx-nodefault.conf.j2
|
||||||
dest: "/etc/nginx/nginx-nodefault.conf"
|
dest: "/etc/nginx/nginx-nodefault.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -127,7 +127,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Create systemd dropin for rh like systems
|
- name: Create systemd dropin for rh like systems
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: systemd_service
|
name: systemd_service
|
||||||
when:
|
when:
|
||||||
- ansible_facts['pkg_mgr'] == 'dnf'
|
- ansible_facts['pkg_mgr'] == 'dnf'
|
||||||
@ -145,7 +145,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Configure nginx virtual hosts
|
- name: Configure nginx virtual hosts
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: ironic-ipxe.conf.j2
|
src: ironic-ipxe.conf.j2
|
||||||
dest: "/etc/nginx/{{ ironic_nginx_conf_path }}/ironic-ipxe.conf"
|
dest: "/etc/nginx/{{ ironic_nginx_conf_path }}/ironic-ipxe.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -154,7 +154,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Link to enable nginx virtual hosts
|
- name: Link to enable nginx virtual hosts
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/etc/nginx/sites-available/ironic-ipxe.conf"
|
src: "/etc/nginx/sites-available/ironic-ipxe.conf"
|
||||||
path: "/etc/nginx/sites-enabled/ironic-ipxe.conf"
|
path: "/etc/nginx/sites-enabled/ironic-ipxe.conf"
|
||||||
state: link
|
state: link
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Update database schema
|
- name: Update database schema
|
||||||
command: "{{ ironic_bin }}/ironic-dbsync upgrade"
|
ansible.builtin.command: "{{ ironic_bin }}/ironic-dbsync upgrade"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ ironic_system_user_name }}"
|
become_user: "{{ ironic_system_user_name }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: inventory_hostname in groups['ironic_conductor'][0]
|
when: inventory_hostname in groups['ironic_conductor'][0]
|
||||||
|
|
||||||
- name: Update database schema
|
- name: Update database schema
|
||||||
command: "{{ ironic_bin }}/ironic-inspector-dbsync --config-file /etc/ironic-inspector/ironic-inspector.conf upgrade"
|
ansible.builtin.command: "{{ ironic_bin }}/ironic-inspector-dbsync --config-file /etc/ironic-inspector/ironic-inspector.conf upgrade"
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
|
@ -24,14 +24,14 @@
|
|||||||
ansible_python_interpreter: "{{ ironic_service_setup_host_python_interpreter }}"
|
ansible_python_interpreter: "{{ ironic_service_setup_host_python_interpreter }}"
|
||||||
block:
|
block:
|
||||||
- name: Create image download directory
|
- name: Create image download directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ ironic_deploy_image_path }}"
|
path: "{{ ironic_deploy_image_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
owner: "{{ ironic_deploy_image_path_owner }}"
|
owner: "{{ ironic_deploy_image_path_owner }}"
|
||||||
|
|
||||||
- name: Download image from artefact server
|
- name: Download image from artefact server
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ item['url'] }}"
|
url: "{{ item['url'] }}"
|
||||||
dest: "{{ ironic_deploy_image_path }}"
|
dest: "{{ ironic_deploy_image_path }}"
|
||||||
checksum: "sha256:{{ item['sha_url'] }}"
|
checksum: "sha256:{{ item['sha_url'] }}"
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Default pxelinux.0 config
|
- name: Default pxelinux.0 config
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: pxelinux-default.j2
|
src: pxelinux-default.j2
|
||||||
dest: "{{ ironic_inspector_tftpboot_dir }}/pxelinux.cfg/default"
|
dest: "{{ ironic_inspector_tftpboot_dir }}/pxelinux.cfg/default"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Copy Inspector iPXE Configuration
|
- name: Copy Inspector iPXE Configuration
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: inspector.ipxe.j2
|
src: inspector.ipxe.j2
|
||||||
dest: "{{ ironic_http_root }}/inspector.ipxe"
|
dest: "{{ ironic_http_root }}/inspector.ipxe"
|
||||||
owner: "{{ ironic_system_user_name }}"
|
owner: "{{ ironic_system_user_name }}"
|
||||||
@ -28,7 +28,7 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Download IPA Images
|
- name: Download IPA Images
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
dest: "{{ ironic_inspector_httpboot_dir }}/{{ item.name }}"
|
dest: "{{ ironic_inspector_httpboot_dir }}/{{ item.name }}"
|
||||||
checksum: "sha256:{{ item.sha_url }}"
|
checksum: "sha256:{{ item.sha_url }}"
|
||||||
@ -41,21 +41,21 @@
|
|||||||
when: ironic_inspector_boot_mode == 'http'
|
when: ironic_inspector_boot_mode == 'http'
|
||||||
block:
|
block:
|
||||||
- name: Disable default nginx configuration
|
- name: Disable default nginx configuration
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/nginx/sites-enabled/default
|
path: /etc/nginx/sites-enabled/default
|
||||||
state: absent
|
state: absent
|
||||||
notify:
|
notify:
|
||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Remove default nginx config
|
- name: Remove default nginx config
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /etc/nginx/conf.d/default.conf
|
path: /etc/nginx/conf.d/default.conf
|
||||||
state: absent
|
state: absent
|
||||||
notify:
|
notify:
|
||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Ensure nginx configuration directories exist
|
- name: Ensure nginx configuration directories exist
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
@ -63,7 +63,7 @@
|
|||||||
- "/etc/nginx/{{ ironic_nginx_conf_path }}"
|
- "/etc/nginx/{{ ironic_nginx_conf_path }}"
|
||||||
|
|
||||||
- name: Write alternate nginx.conf for rh like systems
|
- name: Write alternate nginx.conf for rh like systems
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: nginx-nodefault.conf.j2
|
src: nginx-nodefault.conf.j2
|
||||||
dest: "/etc/nginx/nginx-nodefault.conf"
|
dest: "/etc/nginx/nginx-nodefault.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -73,7 +73,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Create systemd dropin for rh like systems
|
- name: Create systemd dropin for rh like systems
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: systemd_service
|
name: systemd_service
|
||||||
when:
|
when:
|
||||||
- ansible_facts['pkg_mgr'] == 'dnf'
|
- ansible_facts['pkg_mgr'] == 'dnf'
|
||||||
@ -91,7 +91,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Configure nginx virtual hosts
|
- name: Configure nginx virtual hosts
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: ironic-ipxe.conf.j2
|
src: ironic-ipxe.conf.j2
|
||||||
dest: "/etc/nginx/{{ ironic_nginx_conf_path }}/ironic-ipxe.conf"
|
dest: "/etc/nginx/{{ ironic_nginx_conf_path }}/ironic-ipxe.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -99,7 +99,7 @@
|
|||||||
- Restart web server
|
- Restart web server
|
||||||
|
|
||||||
- name: Link to enable nginx virtual hosts
|
- name: Link to enable nginx virtual hosts
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/etc/nginx/sites-available/ironic-ipxe.conf"
|
src: "/etc/nginx/sites-available/ironic-ipxe.conf"
|
||||||
path: "/etc/nginx/sites-enabled/ironic-ipxe.conf"
|
path: "/etc/nginx/sites-enabled/ironic-ipxe.conf"
|
||||||
state: link
|
state: link
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Copy in dhcp config file
|
- name: Copy in dhcp config file
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "dhcpd.conf.j2"
|
src: "dhcpd.conf.j2"
|
||||||
dest: "/etc/dhcp/dhcpd.conf"
|
dest: "/etc/dhcp/dhcpd.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
@ -23,7 +23,7 @@
|
|||||||
- Restart isc-dhcp-server
|
- Restart isc-dhcp-server
|
||||||
|
|
||||||
- name: Copy in dnsmasq config file
|
- name: Copy in dnsmasq config file
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "dnsmasq.conf.j2"
|
src: "dnsmasq.conf.j2"
|
||||||
dest: "/etc/ironic-inspector/inspector-dnsmasq.conf"
|
dest: "/etc/ironic-inspector/inspector-dnsmasq.conf"
|
||||||
owner: "{{ ironic_system_user_name }}"
|
owner: "{{ ironic_system_user_name }}"
|
||||||
@ -34,7 +34,7 @@
|
|||||||
- Restart ironic-inspector-dnsmasq
|
- Restart ironic-inspector-dnsmasq
|
||||||
|
|
||||||
- name: Create directories
|
- name: Create directories
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ ironic_system_user_name }}"
|
owner: "{{ ironic_system_user_name }}"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Post swift tempURL secret key
|
- name: Post swift tempURL secret key
|
||||||
command: >
|
ansible.builtin.command: >
|
||||||
{{ ironic_bin }}/swift {{ keystone_service_adminuri_insecure | bool | ternary('--insecure', '--os-cacert ' ~ _ironic_ssl_truststore_location) }}
|
{{ ironic_bin }}/swift {{ keystone_service_adminuri_insecure | bool | ternary('--insecure', '--os-cacert ' ~ _ironic_ssl_truststore_location) }}
|
||||||
--os-username "service:{{ glance_service_user_name }}"
|
--os-username "service:{{ glance_service_user_name }}"
|
||||||
--os-password "{{ glance_service_password }}"
|
--os-password "{{ glance_service_password }}"
|
||||||
@ -32,7 +32,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Get swift account
|
- name: Get swift account
|
||||||
shell: >
|
ansible.builtin.shell: >
|
||||||
{{ ironic_bin }}/swift {{ keystone_service_adminuri_insecure | bool | ternary('--insecure', '--os-cacert ' ~ _ironic_ssl_truststore_location) }}
|
{{ ironic_bin }}/swift {{ keystone_service_adminuri_insecure | bool | ternary('--insecure', '--os-cacert ' ~ _ironic_ssl_truststore_location) }}
|
||||||
--os-username "service:{{ glance_service_user_name }}"
|
--os-username "service:{{ glance_service_user_name }}"
|
||||||
--os-password "{{ glance_service_password }}"
|
--os-password "{{ glance_service_password }}"
|
||||||
@ -51,7 +51,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Validate swift output
|
- name: Validate swift output
|
||||||
fail:
|
ansible.builtin.fail:
|
||||||
msg: |
|
msg: |
|
||||||
No StorageURL output found using the `swift stat` command and either
|
No StorageURL output found using the `swift stat` command and either
|
||||||
the ``ironic_swift_auth_account`` or ``ironic_swift_auth_account``
|
the ``ironic_swift_auth_account`` or ``ironic_swift_auth_account``
|
||||||
@ -66,7 +66,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Set the swift auth facts
|
- name: Set the swift auth facts
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
ironic_swift_auth_account: "{{ swift_storage_url.stdout.split('/v1/')[-1] }}"
|
ironic_swift_auth_account: "{{ swift_storage_url.stdout.split('/v1/')[-1] }}"
|
||||||
when:
|
when:
|
||||||
- not ironic_enable_web_server_for_images | bool
|
- not ironic_enable_web_server_for_images | bool
|
||||||
@ -76,7 +76,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Set the swift endpoint facts
|
- name: Set the swift endpoint facts
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
ironic_swift_endpoint: "{{ swift_storage_url.stdout.split('/v1/')[0] }}"
|
ironic_swift_endpoint: "{{ swift_storage_url.stdout.split('/v1/')[0] }}"
|
||||||
when:
|
when:
|
||||||
- not ironic_enable_web_server_for_images | bool
|
- not ironic_enable_web_server_for_images | bool
|
||||||
@ -136,7 +136,7 @@
|
|||||||
- ironic-policy-override
|
- ironic-policy-override
|
||||||
|
|
||||||
- name: Remove legacy policy.yaml file
|
- name: Remove legacy policy.yaml file
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "/etc/ironic/policy.yaml"
|
path: "/etc/ironic/policy.yaml"
|
||||||
state: absent
|
state: absent
|
||||||
when:
|
when:
|
||||||
@ -145,7 +145,7 @@
|
|||||||
- ironic-policy-override
|
- ironic-policy-override
|
||||||
|
|
||||||
- name: Copy rootwrap filters
|
- name: Copy rootwrap filters
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "/etc/ironic/rootwrap.d/"
|
dest: "/etc/ironic/rootwrap.d/"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
@ -158,7 +158,7 @@
|
|||||||
- Restart uwsgi services
|
- Restart uwsgi services
|
||||||
|
|
||||||
- name: Include sudoers file
|
- name: Include sudoers file
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "sudoers.j2"
|
src: "sudoers.j2"
|
||||||
dest: "/etc/sudoers.d/{{ ironic_system_user_name }}_sudoers"
|
dest: "/etc/sudoers.d/{{ ironic_system_user_name }}_sudoers"
|
||||||
mode: "0440"
|
mode: "0440"
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Create the system group
|
- name: Create the system group
|
||||||
group:
|
ansible.builtin.group:
|
||||||
name: "{{ ironic_system_group_name }}"
|
name: "{{ ironic_system_group_name }}"
|
||||||
state: "present"
|
state: "present"
|
||||||
system: "yes"
|
system: "yes"
|
||||||
|
|
||||||
- name: Create ironic system users
|
- name: Create ironic system users
|
||||||
user:
|
ansible.builtin.user:
|
||||||
name: "{{ ironic_system_user_name }}"
|
name: "{{ ironic_system_user_name }}"
|
||||||
group: "{{ ironic_system_group_name }}"
|
group: "{{ ironic_system_group_name }}"
|
||||||
comment: "{{ ironic_system_comment }}"
|
comment: "{{ ironic_system_comment }}"
|
||||||
@ -30,7 +30,7 @@
|
|||||||
home: "{{ ironic_system_home_folder }}"
|
home: "{{ ironic_system_home_folder }}"
|
||||||
|
|
||||||
- name: Create ironic dir
|
- name: Create ironic dir
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ item.owner | default(ironic_system_user_name) }}"
|
owner: "{{ item.owner | default(ironic_system_user_name) }}"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Gather variables for each operating system
|
- name: Gather variables for each operating system
|
||||||
include_vars: "{{ lookup('first_found', params) }}"
|
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
||||||
vars:
|
vars:
|
||||||
params:
|
params:
|
||||||
files:
|
files:
|
||||||
@ -29,7 +29,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Gathering facts on metal hosts for interface {{ ironic_container_network_name }}
|
- name: Gathering facts on metal hosts for interface {{ ironic_container_network_name }}
|
||||||
setup:
|
ansible.builtin.setup:
|
||||||
gather_subset: "!all,network"
|
gather_subset: "!all,network"
|
||||||
filter: "{{ dynamic_address_gather_filter | default(('ansible_' ~ default_network_interface_name) | replace('-','_')) }}"
|
filter: "{{ dynamic_address_gather_filter | default(('ansible_' ~ default_network_interface_name) | replace('-','_')) }}"
|
||||||
vars:
|
vars:
|
||||||
@ -41,7 +41,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Including osa.db_setup role
|
- name: Including osa.db_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.db_setup
|
name: openstack.osa.db_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@ -63,7 +63,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Including osa.db_setup role
|
- name: Including osa.db_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.db_setup
|
name: openstack.osa.db_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@ -85,7 +85,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Including osa.mq_setup role
|
- name: Including osa.mq_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.mq_setup
|
name: openstack.osa.mq_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@ -111,12 +111,12 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Importing ironic_pre_install tasks
|
- name: Importing ironic_pre_install tasks
|
||||||
import_tasks: ironic_pre_install.yml
|
ansible.builtin.import_tasks: ironic_pre_install.yml
|
||||||
tags:
|
tags:
|
||||||
- ironic-install
|
- ironic-install
|
||||||
|
|
||||||
- name: Create and install SSL certificates
|
- name: Create and install SSL certificates
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: pki
|
name: pki
|
||||||
tasks_from: main_certs.yml
|
tasks_from: main_certs.yml
|
||||||
apply:
|
apply:
|
||||||
@ -137,7 +137,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Install the python venv
|
- name: Install the python venv
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: "python_venv_build"
|
name: "python_venv_build"
|
||||||
vars:
|
vars:
|
||||||
venv_python_executable: "{{ ironic_venv_python_executable }}"
|
venv_python_executable: "{{ ironic_venv_python_executable }}"
|
||||||
@ -155,13 +155,13 @@
|
|||||||
- ironic-install
|
- ironic-install
|
||||||
|
|
||||||
- name: Importing ironic_post_install tasks
|
- name: Importing ironic_post_install tasks
|
||||||
import_tasks: ironic_post_install.yml
|
ansible.builtin.import_tasks: ironic_post_install.yml
|
||||||
tags:
|
tags:
|
||||||
- ironic-config
|
- ironic-config
|
||||||
- post-install
|
- post-install
|
||||||
|
|
||||||
- name: Import uwsgi role
|
- name: Import uwsgi role
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: uwsgi
|
name: uwsgi
|
||||||
vars:
|
vars:
|
||||||
uwsgi_services: "{{ uwsgi_ironic_services }}"
|
uwsgi_services: "{{ uwsgi_ironic_services }}"
|
||||||
@ -171,24 +171,24 @@
|
|||||||
- uwsgi
|
- uwsgi
|
||||||
|
|
||||||
- name: Importing ironic_conductor_post_install tasks
|
- name: Importing ironic_conductor_post_install tasks
|
||||||
import_tasks: ironic_conductor_post_install.yml
|
ansible.builtin.import_tasks: ironic_conductor_post_install.yml
|
||||||
when: "ironic_services['ironic-conductor']['group'] in group_names"
|
when: "ironic_services['ironic-conductor']['group'] in group_names"
|
||||||
tags:
|
tags:
|
||||||
- ironic-config
|
- ironic-config
|
||||||
|
|
||||||
- name: Importing ironic_db_setup tasks
|
- name: Importing ironic_db_setup tasks
|
||||||
import_tasks: ironic_db_setup.yml
|
ansible.builtin.import_tasks: ironic_db_setup.yml
|
||||||
tags:
|
tags:
|
||||||
- ironic-config
|
- ironic-config
|
||||||
|
|
||||||
- name: Importing ironic_inspector_pre_install tasks
|
- name: Importing ironic_inspector_pre_install tasks
|
||||||
import_tasks: ironic_inspector_pre_install.yml
|
ansible.builtin.import_tasks: ironic_inspector_pre_install.yml
|
||||||
when: inventory_hostname in groups['ironic_inspector']
|
when: inventory_hostname in groups['ironic_inspector']
|
||||||
tags:
|
tags:
|
||||||
- ironic-inspector
|
- ironic-inspector
|
||||||
|
|
||||||
- name: Run the systemd service role
|
- name: Run the systemd service role
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: systemd_service
|
name: systemd_service
|
||||||
vars:
|
vars:
|
||||||
systemd_user_name: "{{ ironic_system_user_name }}"
|
systemd_user_name: "{{ ironic_system_user_name }}"
|
||||||
@ -206,7 +206,7 @@
|
|||||||
- systemd-service
|
- systemd-service
|
||||||
|
|
||||||
- name: Including osa.service_setup role
|
- name: Including osa.service_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.service_setup
|
name: openstack.osa.service_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@ -227,13 +227,13 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Importing ironic_inspector_post_install tasks
|
- name: Importing ironic_inspector_post_install tasks
|
||||||
import_tasks: ironic_inspector_post_install.yml
|
ansible.builtin.import_tasks: ironic_inspector_post_install.yml
|
||||||
when: inventory_hostname in groups['ironic_inspector']
|
when: inventory_hostname in groups['ironic_inspector']
|
||||||
tags:
|
tags:
|
||||||
- ironic-inspector
|
- ironic-inspector
|
||||||
|
|
||||||
- name: Including ironic_deploy_image tasks
|
- name: Including ironic_deploy_image tasks
|
||||||
include_tasks: ironic_deploy_image.yml
|
ansible.builtin.include_tasks: ironic_deploy_image.yml
|
||||||
args:
|
args:
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user