lots of cleanup; removal of some roles we are not actually going to rewrite or use

This commit is contained in:
Chris Hammer 2023-12-08 01:53:17 -05:00
parent ea0c0435c4
commit 7db2e3df75
44 changed files with 8 additions and 228 deletions

View File

@ -1,34 +0,0 @@
[defaults]
inventory = /etc/ansible/zen_inventory.yml
roles_path = /etc/ansible/roles
collections_path = /etc/ansible/collections
remote_tmp = /tmp/.ansible-${USER}/tmp
gathering = smart
gather_timeout = 30
fact_path = /etc/ansible/facts
fact_caching = jsonfile
fact_caching_connection = facts.d
fact_caching_timeout = 300
retry_files_enabled = False
forks = 40
timeout = 30
host_key_checking = False
display_skipped_hosts = False
bin_ansible_callbacks = True
callback_whitelist = ansible.posix.profile_tasks, ansible.posix.timer
deprecation_warnings = False
command_warnings = False
[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey
[galaxy]
server_list = pah
[galaxy_server.pah]
url=https://hub.thezengarden.net/api/galaxy/content/inbound-jchristianh/
token=1a9e01d61c2528a3661f1a6ceea07dafeca63198

View File

View File

@ -8,7 +8,7 @@ namespace: jchristianh
name: baseos name: baseos
# The version of the collection. Must be compatible with semantic versioning # The version of the collection. Must be compatible with semantic versioning
version: 1.0.7 version: 1.0.8
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection # The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md readme: README.md

View File

@ -1,2 +1,2 @@
--- ---
requires_ansible: ">=2.10" requires_ansible: ">=2.14"

View File

@ -1,31 +0,0 @@
# Collections Plugins Directory
This directory can be used to ship various plugins inside an Ansible collection. Each plugin is placed in a folder that
is named after the type of plugin it is in. It can also include the `module_utils` and `modules` directory that
would contain module utils and modules respectively.
Here is an example directory of the majority of plugins currently supported by Ansible:
```
└── plugins
├── action
├── become
├── cache
├── callback
├── cliconf
├── connection
├── filter
├── httpapi
├── inventory
├── lookup
├── module_utils
├── modules
├── netconf
├── shell
├── strategy
├── terminal
├── test
└── vars
```
A full list of plugin types can be found at [Working With Plugins](https://docs.ansible.com/ansible-core/2.12/plugins/plugins.html).

View File

@ -1,2 +0,0 @@
---
# handlers file for base_packages

View File

@ -1,2 +0,0 @@
---
# defaults file for bashrc

View File

@ -1,2 +0,0 @@
---
# handlers file for bashrc

View File

@ -1,2 +0,0 @@
---
# vars file for bashrc

View File

@ -1,2 +0,0 @@
---
# handlers file for default_services

View File

@ -1,2 +0,0 @@
---
# vars file for default_services

View File

@ -8,7 +8,6 @@ __template_header : The Zen Garden
__etc_hosts_file : /etc/hosts __etc_hosts_file : /etc/hosts
__etc_hosts_file_docker : /etc/hosts.docker
__etc_hosts_version : 1.0.0 __etc_hosts_version : 1.0.0
__etc_hosts_revision : 22314 __etc_hosts_revision : 22314

View File

@ -1,7 +1,7 @@
--- ---
- name: Set etc_hosts_file if running in Docker - name: Set etc_hosts_file if running in Docker
set_fact: set_fact:
etc_hosts_file: "{{ __etc_hosts_file_docker }}" etc_hosts_file: "{{ __etc_hosts_file }}.docker"
when: when:
- ansible_virtualization_type == "docker" - ansible_virtualization_type == "docker"

View File

@ -1,2 +0,0 @@
---
# vars file for etc_hosts

View File

@ -1,2 +0,0 @@
---
# defaults file for hostname

View File

@ -4,7 +4,6 @@
name : rsyslog name : rsyslog
state : restarted state : restarted
- name: restart_syslog_centos_8 - name: restart_syslog_centos_8
service: service:
name : syslog name : syslog
@ -15,29 +14,30 @@
name : rsyslog name : rsyslog
state : restarted state : restarted
- name: restart_syslog_redhat_8 - name: restart_syslog_redhat_8
service: service:
name : rsyslog name : rsyslog
state : restarted state : restarted
- name: restart_syslog_redhat_9 - name: restart_syslog_redhat_9
service: service:
name : rsyslog name : rsyslog
state : restarted state : restarted
- name: restart_syslog_debian_11 - name: restart_syslog_debian_11
service: service:
name : rsyslog name : rsyslog
state : restarted state : restarted
- name: restart_syslog_fedora_35 - name: restart_syslog_fedora_35
service: service:
name : rsyslog name : rsyslog
state : restarted state : restarted
- name: restart_syslog_fedora_38
service:
name : rsyslog
state : started
... ...

View File

@ -1,2 +0,0 @@
---
# vars file for hostname

View File

@ -1,38 +0,0 @@
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View File

@ -1,7 +0,0 @@
---
do_ipa_registration : True
ipa_domain : thezengarden.net
ipa_auth_server : ipa.thezengarden.net
ipa_otp : Bap2e5adcWoHZtEPE

View File

@ -1,2 +0,0 @@
---
# handlers file for ipa_client

View File

@ -1,52 +0,0 @@
galaxy_info:
author: your name
description: your role description
company: your company (optional)
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.1
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@ -1,14 +0,0 @@
---
- name: Check for existing IPA registration
lineinfile:
path: /etc/krb5.conf
regexp: "{{ ipa_auth_server }}"
state: absent
changed_when: false
register: ipa_registered_check
- name: Register system against IPA server
command: ipa-client-install --server {{ ipa_auth_server }}\
--domain {{ ipa_domain }} --mkhomedir -w {{ ipa_otp }} --unattended
when: not ipa_registered_check.found

View File

@ -1,2 +0,0 @@
localhost

View File

@ -1,5 +0,0 @@
---
- hosts: localhost
remote_user: root
roles:
- ipa_client

View File

@ -1,2 +0,0 @@
---
# vars file for ipa_client

View File

View File

@ -1,2 +0,0 @@
---
# handlers file for motd

View File

@ -1,2 +0,0 @@
---
# vars file for motd

View File

@ -1,2 +0,0 @@
---
# handlers file for resolv_conf

View File

@ -1,2 +0,0 @@
---
# vars file for resolv_conf

View File

@ -1,2 +0,0 @@
---
# defaults file for roles/update_all_packages

View File

@ -1,2 +0,0 @@
---
# handlers file for roles/update_all_packages

View File

@ -1,2 +0,0 @@
---
# vars file for roles/update_all_packages