Software Updates, FreeBSD Sendmail, GitLab Fixes (#18)
* Assign test to dev branch. * Update telegraf Linux binary. * First attempt at making sure sendmail is on FreeBSD systems. * Change gitlab_url to be specified in host file. * Upgrade nanominer. * Fix FINISH file being populated without START on non-containers. * Prevent installer from trying to set up certificate. * Fix name spacing. * Fix gitlab_url variable. * Change names to show both parameter name and value. * Fix gitlab_url values to contain the protocol. * Fix gitlab_url example.
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
|
||||
- name: General | Finish | Ansible Pull Report | Finish File
|
||||
shell: "echo 'FINISH' >> {{ ansible_pull_report }}"
|
||||
when: leet_drive_details.stat.exists
|
||||
|
||||
- name: General | Finish | Ansible Pull Report | Add Date Entry
|
||||
shell: "date >> {{ ansible_pull_report }}"
|
||||
shell: "date >> {{ ansible_pull_report }}"
|
||||
when: leet_drive_details.stat.exists
|
||||
|
47
tasks/general/software/sendmail.yml
Normal file
47
tasks/general/software/sendmail.yml
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
# 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
|
||||
|
||||
- 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"
|
@ -6,7 +6,7 @@
|
||||
|
||||
- name: General | Telegraf | Variables 1/4
|
||||
set_fact:
|
||||
telegraf_tar: telegraf-1.18.0_linux_amd64.tar.gz
|
||||
telegraf_tar: telegraf-1.20.3_linux_amd64.tar.gz
|
||||
telegraf_path: /usr/local/bin
|
||||
telegraf_config_path: /usr/local/etc
|
||||
telegraf_user: "{{ user_ansible.name }}"
|
||||
|
Reference in New Issue
Block a user