mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
indentation/syntax per new Ansible docs
This commit is contained in:
parent
9b804e3d5d
commit
9fd4c2a5e5
1 changed files with 17 additions and 12 deletions
|
@ -1,21 +1,24 @@
|
||||||
- name: Does systemd-udevd.service exist
|
- name: Does systemd-udevd.service exist
|
||||||
stat: path="{{ systemd_location }}/systemd-udevd.service"
|
stat:
|
||||||
|
path: "{{ systemd_location }}/systemd-udevd.service"
|
||||||
register: udev_unit
|
register: udev_unit
|
||||||
|
|
||||||
- name: Copy udevd service to /etc/systemd/system to modify
|
- name: Copy udevd service to /etc/systemd/system to modify
|
||||||
copy: src={{ systemd_location }}/systemd-udevd.service
|
copy:
|
||||||
dest=/etc/systemd/system/systemd-udevd.service
|
src: "{{ systemd_location }}/systemd-udevd.service"
|
||||||
owner=root
|
dest: /etc/systemd/system/systemd-udevd.service
|
||||||
group=root
|
owner: root
|
||||||
mode=0644
|
group: root
|
||||||
|
mode: 0644
|
||||||
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
|
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
|
||||||
|
|
||||||
- name: Change MountFlags from slave to shared
|
- name: Change MountFlags from slave to shared
|
||||||
lineinfile: backup=no
|
lineinfile:
|
||||||
dest=/etc/systemd/system/systemd-udevd.service
|
backup: no
|
||||||
regexp='^MountFlags'
|
dest: /etc/systemd/system/systemd-udevd.service
|
||||||
line='MountFlags=shared'
|
regexp: '^MountFlags'
|
||||||
state=present
|
line: 'MountFlags=shared'
|
||||||
|
state: present
|
||||||
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
|
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
|
||||||
|
|
||||||
# ubuntu 16.04 comes with ansible 2.0.0.2 -- no systemd module
|
# ubuntu 16.04 comes with ansible 2.0.0.2 -- no systemd module
|
||||||
|
@ -28,7 +31,9 @@
|
||||||
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
|
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
|
||||||
|
|
||||||
- name: Reload systemd-udevd so it has rootfs open read-write
|
- name: Reload systemd-udevd so it has rootfs open read-write
|
||||||
template: src=udev-reload.service dest=/etc/systemd/system/
|
template:
|
||||||
|
src: udev-reload.service
|
||||||
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
- name: Enable the reload service
|
- name: Enable the reload service
|
||||||
shell: systemctl enable udev-reload.service
|
shell: systemctl enable udev-reload.service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue