-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.yml
38 lines (37 loc) · 1.38 KB
/
post.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: Post Undercloud Run Tasks
hosts: undercloud
tags: post
gather_facts: no
become: yes
any_errors_fatal: true
tasks:
- name: Set selinux state
selinux:
policy: "targeted"
state: "{{ install.selinux|default('enforcing') }}"
when: install.selinux is defined
- name: increase iscsi verify attempts in ironic conductor
block:
- name: set the iscsi verify attempt count in container
lineinfile:
path: /var/lib/config-data/puppet-generated/ironic/etc/ironic/ironic.conf
insertafter: '^#iscsi_verify_attempts'
line: 'iscsi_verify_attempts = 30'
notify: restart ironic conductor container
when: "install.version|openstack_release > 13"
- name: set the iscsi verify attempt count in ironic service
lineinfile:
path: /etc/ironic/ironic.conf
insertafter: '^#iscsi_verify_attempts'
line: 'iscsi_verify_attempts = 30'
notify: restart ironic conductor service
when: "install.version|openstack_release <= 13"
when:
- "'vqfx-0' in hostvars"
- "install.version is defined"
handlers:
- name: restart ironic conductor container
command: docker restart ironic_conductor
- name: restart ironic conductor service
command: systemctl restart openstack-ironic-conductor.service