mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-22 13:11:29 +00:00
Merge pull request #14964 from rocky-linux/develop
upcoming bz and account services
This commit is contained in:
commit
47e041d43f
34
ansible/playbooks/init-rocky-account-services.yml
Normal file
34
ansible/playbooks/init-rocky-account-services.yml
Normal 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
|
34
ansible/playbooks/init-rocky-bugzilla.yml
Normal file
34
ansible/playbooks/init-rocky-bugzilla.yml
Normal 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
|
2
ansible/playbooks/tasks/account_services.yml
Normal file
2
ansible/playbooks/tasks/account_services.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
# Account Services
|
28
ansible/playbooks/tasks/mantis.yml
Normal file
28
ansible/playbooks/tasks/mantis.yml
Normal 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
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
fdns:
|
||||
- boxbuild.rockylinux.org.
|
||||
- rockylinux.org.
|
||||
- aws.rockylinux.org.
|
||||
|
@ -1,16 +1,3 @@
|
||||
---
|
||||
rdns:
|
||||
- 0.1.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.
|
||||
- 32.10.in-addr.arpa.
|
||||
|
Loading…
Reference in New Issue
Block a user