mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Jerry suggested moving out of 1-prep
This commit is contained in:
		
							parent
							
								
									ee08c55f29
								
							
						
					
					
						commit
						c021882545
					
				
					 2 changed files with 27 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -80,32 +80,6 @@
 | 
			
		|||
- include: detected_network.yml
 | 
			
		||||
  when: not installing
 | 
			
		||||
 | 
			
		||||
- name:  Does systemd-udevd.service exist
 | 
			
		||||
  stat: "{{ systemd_location }}/systemd-udevd.service"
 | 
			
		||||
  register: udev_unit
 | 
			
		||||
 | 
			
		||||
- name: Copy udevd service to /etc/systemd/system to modify
 | 
			
		||||
  copy: src={{ systemd_location }}/systemd-udevd.service
 | 
			
		||||
        dest=/etc/systemd/system/systemd-udevd.service
 | 
			
		||||
        owner=root
 | 
			
		||||
        group=root
 | 
			
		||||
        mode=0644
 | 
			
		||||
  when: udev_unit.stat.exists is defined and udev_unit stat.exists
 | 
			
		||||
 | 
			
		||||
- name: Change MountFlags from slave to shared
 | 
			
		||||
  lineinfile: backup=no
 | 
			
		||||
              dest=/etc/systemd/system/systemd-udevd.service
 | 
			
		||||
              regexp='^MountFlags'
 | 
			
		||||
              line='MountFlags=shared'
 | 
			
		||||
              state=present
 | 
			
		||||
  when: udev_unit.stat.exists is defined and udev_unit stat.exists
 | 
			
		||||
 | 
			
		||||
- name: Ask systemd to recognize the changes
 | 
			
		||||
  systemd: name=systemd-udevd 
 | 
			
		||||
           daemon-reload=True
 | 
			
		||||
           state=restarted
 | 
			
		||||
  when: udev_unit.stat.exists is defined and udev_unit stat.exists
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Put conditional actions for hardware platforms here
 | 
			
		||||
- include: raspberry_pi_2.yml
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,3 +29,30 @@
 | 
			
		|||
- name: Disable wpa_supplicant
 | 
			
		||||
  service: name=wpa_supplicant
 | 
			
		||||
           enabled=no
 | 
			
		||||
 | 
			
		||||
- name:  Does systemd-udevd.service exist
 | 
			
		||||
  stat: "{{ systemd_location }}/systemd-udevd.service"
 | 
			
		||||
  register: udev_unit
 | 
			
		||||
 | 
			
		||||
- name: Copy udevd service to /etc/systemd/system to modify
 | 
			
		||||
  copy: src={{ systemd_location }}/systemd-udevd.service
 | 
			
		||||
        dest=/etc/systemd/system/systemd-udevd.service
 | 
			
		||||
        owner=root
 | 
			
		||||
        group=root
 | 
			
		||||
        mode=0644
 | 
			
		||||
  when: udev_unit.stat.exists is defined and udev_unit stat.exists
 | 
			
		||||
 | 
			
		||||
- name: Change MountFlags from slave to shared
 | 
			
		||||
  lineinfile: backup=no
 | 
			
		||||
              dest=/etc/systemd/system/systemd-udevd.service
 | 
			
		||||
              regexp='^MountFlags'
 | 
			
		||||
              line='MountFlags=shared'
 | 
			
		||||
              state=present
 | 
			
		||||
  when: udev_unit.stat.exists is defined and udev_unit stat.exists
 | 
			
		||||
 | 
			
		||||
- name: Ask systemd to recognize the changes
 | 
			
		||||
  systemd: name=systemd-udevd 
 | 
			
		||||
           daemon-reload=True
 | 
			
		||||
           state=restarted
 | 
			
		||||
  when: udev_unit.stat.exists is defined and udev_unit stat.exists
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue