* Add at and reword comment. * Add cronie, thought this was already done but last pull request got wonky. * Zypper is not happy about asking Brave repo to be added multiple times. * Replace deprecated `include` commands. * Add gcc. * Add another cc command for openSUSE. * include_tasks is not supporting ignore_errors like include used to, move to individual tasks. * Do a better job of removing libreoffice from local package manager. * Enhance reports. * Add basic VIM setup. * Undo some lynis changes, fix folder permissions so users can view. * Change lynis back to chdir and local execution. * Add doas. * Add check against old usage of setup.sh BRANCH. * Greatly reduce number of tasks, create temp file while building report. * Create temp file while building report.
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
# Ensure /var/spool/clientmque folder doesn't overflow.
 | 
						|
# Preferably only on servers that don't already have postfix?
 | 
						|
 | 
						|
- name: Server | Sendmail | Variables
 | 
						|
  set_fact:
 | 
						|
    sendmail: sendmail
 | 
						|
    sendmail_queue: sendmail_msp_queue
 | 
						|
 | 
						|
- name: Server | Sendmail | Check
 | 
						|
  shell: which postfix
 | 
						|
  register: postfix
 | 
						|
  ignore_errors: yes
 | 
						|
 | 
						|
- name: Server | Sendmail | Install
 | 
						|
  package:
 | 
						|
    name: 
 | 
						|
      - "{{ sendmail }}"
 | 
						|
    state: present
 | 
						|
  when: postfix.failed
 | 
						|
 | 
						|
- name: Server | Sendmail | Configure
 | 
						|
  blockinfile:
 | 
						|
    path: /etc/rc.conf
 | 
						|
    block: |
 | 
						|
      sendmail_enable="YES"
 | 
						|
      sendmail_msp_queue_enable="YES"
 | 
						|
    marker: "# {mark} MANAGED BY ANSIBLE - sendmail"
 | 
						|
    state: present
 | 
						|
    create: yes
 | 
						|
    backup: yes
 | 
						|
  when: postfix.failed and ansible_system == "FreeBSD"
 | 
						|
 | 
						|
- name: Server | Sendmail | Enable + Start | Main
 | 
						|
  service:
 | 
						|
    name: "{{ sendmail }}"
 | 
						|
    pattern: "{{ sendmail }}"
 | 
						|
    state: started
 | 
						|
    enabled: yes
 | 
						|
  when: postfix.failed
 | 
						|
 | 
						|
- name: Server | Sendmail | Enable + Start | Queue
 | 
						|
  service:
 | 
						|
    name: "{{ sendmail_queue }}"
 | 
						|
    pattern: "{{ sendmail_queue }}"
 | 
						|
    state: started
 | 
						|
    enabled: yes
 | 
						|
  when: postfix.failed and ansible_system == "FreeBSD"
 |