Testing if service manages rc.conf entries.
This commit is contained in:
		@@ -38,12 +38,12 @@
 | 
				
			|||||||
    state: started
 | 
					    state: started
 | 
				
			||||||
    enabled: yes
 | 
					    enabled: yes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
 | 
					#- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
 | 
				
			||||||
  lineinfile:
 | 
					#  lineinfile:
 | 
				
			||||||
    path: /etc/rc.conf
 | 
					#    path: /etc/rc.conf
 | 
				
			||||||
    regexp: '^sshd_enable='
 | 
					#    regexp: '^sshd_enable='
 | 
				
			||||||
    line: 'sshd_enable="YES" # MANAGED BY ANSIBLE'
 | 
					#    line: 'sshd_enable="YES" # MANAGED BY ANSIBLE'
 | 
				
			||||||
    state: present
 | 
					#    state: present
 | 
				
			||||||
    create: yes
 | 
					#    create: yes
 | 
				
			||||||
    backup: yes
 | 
					#    backup: yes
 | 
				
			||||||
  when: ansible_system == "FreeBSD"
 | 
					#  when: ansible_system == "FreeBSD"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user