upcoming bz and account services

This commit is contained in:
nazunalika 2021-01-09 17:49:05 -07:00
parent e823e87708
commit 60580742fc
6 changed files with 101 additions and 15 deletions

View File

@ -0,0 +1,34 @@
---
# Preps a system to be part of Account Services
- name: Configure Account Services
hosts: "{{ host }}"
become: true
handers:
- import_tasks: handlers/main.yml
pre_tasks:
- name: Check if ansible cannot be run here
stat:
path: /etc/no-ansible
register: no_ansible
- name: Verify if we can run ansible
assert:
that:
- "not no_ansible.stat.exists"
success_msg: "We are not able to run on this node"
fail_msg: "/etc/no-ansible exists - skipping run on this node"
tasks:
- name: Deploy Account Services
import_tasks: tasks/account_services.yml
post_tasks:
- name: Touching run file that ansible has ran here
file:
path: /var/log/ansible.run
state: touch
mode: '0644'
owner: root
group: root

View File

@ -0,0 +1,34 @@
---
# Installs the mantis bug tracker
- name: Configure MantisBT
hosts: "{{ host }}"
become: true
handers:
- import_tasks: handlers/main.yml
pre_tasks:
- name: Check if ansible cannot be run here
stat:
path: /etc/no-ansible
register: no_ansible
- name: Verify if we can run ansible
assert:
that:
- "not no_ansible.stat.exists"
success_msg: "We are not able to run on this node"
fail_msg: "/etc/no-ansible exists - skipping run on this node"
tasks:
- name: Deploy Mantis
import_tasks: tasks/mantis.yml
post_tasks:
- name: Touching run file that ansible has ran here
file:
path: /var/log/ansible.run
state: touch
mode: '0644'
owner: root
group: root

View File

@ -0,0 +1,2 @@
---
# Account Services

View File

@ -0,0 +1,28 @@
---
# Configure mantis
- name: Configure SELinux booleans
seboolean:
name: "{{ item }}"
persistent: true
state: true
with_items:
- httpd_can_network_connect_db
- httpd_can_network_connect
- httpd_can_sendmail
- name: Install necessary packages
yum:
name: "{{ mantis_pkg }}"
state: present
vars:
mantis_pkg:
- php
- php-ldap
- httpd
- mod_ssl
- php-pgsql
- php-mbstring
- php-curl
- openldap
tags:
- packages

View File

@ -1,3 +1,4 @@
--- ---
fdns: fdns:
- boxbuild.rockylinux.org. - rockylinux.org.
- aws.rockylinux.org.

View File

@ -1,16 +1,3 @@
--- ---
rdns: rdns:
- 0.1.10.in-addr.arpa. - 32.10.in-addr.arpa.
- 2.1.10.in-addr.arpa.
- 4.1.10.in-addr.arpa.
- 6.1.10.in-addr.arpa.
- 8.1.10.in-addr.arpa.
- 10.1.10.in-addr.arpa.
- 14.1.10.in-addr.arpa.
- 0.16.10.in-addr.arpa.
- 2.16.10.in-addr.arpa.
- 4.16.10.in-addr.arpa.
- 6.16.10.in-addr.arpa.
- 8.16.10.in-addr.arpa.
- 10.16.10.in-addr.arpa.
- 14.16.10.in-addr.arpa.