diff --git a/roles/ensure_ansible_prereq/meta/main.yml b/roles/ensure_ansible_prereq/meta/main.yml index 515df96..343a225 100644 --- a/roles/ensure_ansible_prereq/meta/main.yml +++ b/roles/ensure_ansible_prereq/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensure required pre-req are present for ansible management - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_apache/meta/main.yml b/roles/ensure_apache/meta/main.yml index 932ca8d..e55a1d0 100644 --- a/roles/ensure_apache/meta/main.yml +++ b/roles/ensure_apache/meta/main.yml @@ -2,50 +2,9 @@ galaxy_info: author: Jason Rothstein description: Ensure Apache is installed, running, and functional - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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: - role: ensure_firewalld - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/roles/ensure_cockpit/meta/main.yml b/roles/ensure_cockpit/meta/main.yml index b9c3869..af77efe 100644 --- a/roles/ensure_cockpit/meta/main.yml +++ b/roles/ensure_cockpit/meta/main.yml @@ -2,50 +2,9 @@ galaxy_info: author: Jason Rothstein description: Ensures cockpit is installed, running, and functional - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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: - role: ensure_firewalld - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/roles/ensure_dbus/defaults/main.yml b/roles/ensure_dbus/defaults/main.yml index 27d17ae..4e02ee9 100644 --- a/roles/ensure_dbus/defaults/main.yml +++ b/roles/ensure_dbus/defaults/main.yml @@ -1,3 +1,2 @@ -#SPDX-License-Identifier: MIT-0 --- # defaults file for ensure_dbus diff --git a/roles/ensure_dbus/meta/main.yml b/roles/ensure_dbus/meta/main.yml index 3dac88d..ce83ade 100644 --- a/roles/ensure_dbus/meta/main.yml +++ b/roles/ensure_dbus/meta/main.yml @@ -2,8 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensures dbus is installed, running, and functional - company: your company (optional) + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 + min_ansible_version: '2.9' galaxy_tags: [] dependencies: [] diff --git a/roles/ensure_dovecot/meta/main.yml b/roles/ensure_dovecot/meta/main.yml index fa98cd5..c758213 100644 --- a/roles/ensure_dovecot/meta/main.yml +++ b/roles/ensure_dovecot/meta/main.yml @@ -1,51 +1,10 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures dovecot is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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: - role: ensure_firewalld - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/roles/ensure_firewalld/defaults/main.yml b/roles/ensure_firewalld/defaults/main.yml index 90760f6..98a014b 100644 --- a/roles/ensure_firewalld/defaults/main.yml +++ b/roles/ensure_firewalld/defaults/main.yml @@ -1,3 +1,2 @@ -#SPDX-License-Identifier: MIT-0 --- # defaults file for ensure_firewalld diff --git a/roles/ensure_firewalld/meta/main.yml b/roles/ensure_firewalld/meta/main.yml index 44beeff..0e1c569 100644 --- a/roles/ensure_firewalld/meta/main.yml +++ b/roles/ensure_firewalld/meta/main.yml @@ -2,9 +2,9 @@ galaxy_info: author: Jason Rothstein description: Ensures firewalld is installed, running, and functional - company: your company (optional) + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 + min_ansible_version: '2.9' galaxy_tags: [] dependencies: - role: ensure_dbus diff --git a/roles/ensure_git/meta/main.yml b/roles/ensure_git/meta/main.yml index 9fc0b95..39cf67d 100644 --- a/roles/ensure_git/meta/main.yml +++ b/roles/ensure_git/meta/main.yml @@ -1,50 +1,9 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures git is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_git/tasks/main.yml b/roles/ensure_git/tasks/main.yml index 9026868..d13a9fa 100644 --- a/roles/ensure_git/tasks/main.yml +++ b/roles/ensure_git/tasks/main.yml @@ -107,7 +107,7 @@ - results is defined - results.reboot_required is defined - results.reboot_required - reboot: + ansible.builtin.reboot: - name: Ensure Seboolean when: - ansible_facts["system"] == 'Linux' diff --git a/roles/ensure_gitea/meta/main.yml b/roles/ensure_gitea/meta/main.yml index 69e2998..087828c 100644 --- a/roles/ensure_gitea/meta/main.yml +++ b/roles/ensure_gitea/meta/main.yml @@ -2,50 +2,9 @@ galaxy_info: author: Jason Rothstein description: Deploy MariaDB - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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: - role: ensure_firewalld - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/roles/ensure_hostname/meta/main.yml b/roles/ensure_hostname/meta/main.yml index 5d7099b..dd6b7bb 100644 --- a/roles/ensure_hostname/meta/main.yml +++ b/roles/ensure_hostname/meta/main.yml @@ -1,50 +1,9 @@ --- 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 + author: Jason Rothstein + description: Ensures hostname is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.1' 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. diff --git a/roles/ensure_log_rotation/meta/main.yml b/roles/ensure_log_rotation/meta/main.yml index 8d24b58..5a7f662 100644 --- a/roles/ensure_log_rotation/meta/main.yml +++ b/roles/ensure_log_rotation/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensure default log retention and rotation policy is applied - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_mariadb/meta/main.yml b/roles/ensure_mariadb/meta/main.yml index 69e2998..087828c 100644 --- a/roles/ensure_mariadb/meta/main.yml +++ b/roles/ensure_mariadb/meta/main.yml @@ -2,50 +2,9 @@ galaxy_info: author: Jason Rothstein description: Deploy MariaDB - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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: - role: ensure_firewalld - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/roles/ensure_os_patch/meta/main.yml b/roles/ensure_os_patch/meta/main.yml index 8777568..51cb102 100644 --- a/roles/ensure_os_patch/meta/main.yml +++ b/roles/ensure_os_patch/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensure OS patches are applied - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_os_upgrade/meta/main.yml b/roles/ensure_os_upgrade/meta/main.yml index 9fc0b95..ec0c8fc 100644 --- a/roles/ensure_os_upgrade/meta/main.yml +++ b/roles/ensure_os_upgrade/meta/main.yml @@ -1,50 +1,9 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures os_upgrade is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_os_upgrade/tasks/Debian-default.yml b/roles/ensure_os_upgrade/tasks/Debian-default.yml index c3dba9f..e7b22f9 100644 --- a/roles/ensure_os_upgrade/tasks/Debian-default.yml +++ b/roles/ensure_os_upgrade/tasks/Debian-default.yml @@ -10,7 +10,7 @@ path: /etc/apt/sources.list regexp: '^(deb(?:-src)?\s+https?://[a-zA-Z0-9.-]*debian\.org\S*\s+)\b{{ ansible_facts["lsb"]["codename"] }}\b(.*)$' replace: '\1{{ ensure_os_upgrade.target_codename }}\2' - backup: yes + backup: true - name: Safe Upgrade Debian Packages when: @@ -19,7 +19,7 @@ - ensure_os_upgrade is defined - ensure_os_upgrade.target_codename is defined ansible.builtin.apt: - update_cache: yes + update_cache: true upgrade: safe dpkg_options: 'force-confnew,force-confdef' environment: @@ -34,8 +34,8 @@ ansible.builtin.apt: upgrade: dist dpkg_options: 'force-confnew,force-confdef' - autoremove: yes - autoclean: yes + autoremove: true + autoclean: true environment: DEBIAN_FRONTEND: noninteractive diff --git a/roles/ensure_os_upgrade/tasks/Fedora-default.yml b/roles/ensure_os_upgrade/tasks/Fedora-default.yml index cbd3e14..882b827 100644 --- a/roles/ensure_os_upgrade/tasks/Fedora-default.yml +++ b/roles/ensure_os_upgrade/tasks/Fedora-default.yml @@ -10,7 +10,7 @@ - ensure_os_upgrade.target_version is defined - ansible_facts["distribution_major_version"]|int < ensure_os_upgrade.target_version|int ansible.builtin.shell: > - dnf -y system-upgrade download --refresh --releasever={{ ensure_os_upgrade.target_version|int }} + dnf -y system-upgrade download --refresh --releasever={{ ensure_os_upgrade.target_version | int }} - name: Ensure System-upgrade Reboot when: - ansible_facts["system"] == 'Linux' @@ -36,7 +36,7 @@ ansible.builtin.wait_for: connect_timeout: '5' delay: '300' - host: '{{ (ansible_ssh_host|default(ansible_host))|default(inventory_hostname) }}' + host: '{{ (ansible_ssh_host | default(ansible_host)) | default(inventory_hostname) }}' port: '22' search_regex: OpenSSH sleep: '15' diff --git a/roles/ensure_podman/meta/main.yml b/roles/ensure_podman/meta/main.yml index 9fc0b95..515990c 100644 --- a/roles/ensure_podman/meta/main.yml +++ b/roles/ensure_podman/meta/main.yml @@ -1,50 +1,9 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures podman is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_postfix/meta/main.yml b/roles/ensure_postfix/meta/main.yml index fa98cd5..161c824 100644 --- a/roles/ensure_postfix/meta/main.yml +++ b/roles/ensure_postfix/meta/main.yml @@ -1,51 +1,10 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures postfix is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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: - role: ensure_firewalld - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. diff --git a/roles/ensure_repo_epel/meta/main.yml b/roles/ensure_repo_epel/meta/main.yml index a53cfe5..02c9662 100644 --- a/roles/ensure_repo_epel/meta/main.yml +++ b/roles/ensure_repo_epel/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensure EPEL on EL - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_repo_rpmfusion/meta/main.yml b/roles/ensure_repo_rpmfusion/meta/main.yml index 68ed948..b4d139e 100644 --- a/roles/ensure_repo_rpmfusion/meta/main.yml +++ b/roles/ensure_repo_rpmfusion/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Deploy RPM Fusion repo - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_rsync/meta/main.yml b/roles/ensure_rsync/meta/main.yml index 9fc0b95..2e9fd0c 100644 --- a/roles/ensure_rsync/meta/main.yml +++ b/roles/ensure_rsync/meta/main.yml @@ -1,50 +1,9 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures rsync is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_selinux/meta/main.yml b/roles/ensure_selinux/meta/main.yml index 9fc0b95..68fae91 100644 --- a/roles/ensure_selinux/meta/main.yml +++ b/roles/ensure_selinux/meta/main.yml @@ -1,50 +1,9 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures selinux is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_sudo/meta/main.yml b/roles/ensure_sudo/meta/main.yml index a5508b8..40ed71d 100644 --- a/roles/ensure_sudo/meta/main.yml +++ b/roles/ensure_sudo/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensure sudo configuration - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_timezone/meta/main.yml b/roles/ensure_timezone/meta/main.yml index 1ac0950..e5c2b9e 100644 --- a/roles/ensure_timezone/meta/main.yml +++ b/roles/ensure_timezone/meta/main.yml @@ -2,49 +2,8 @@ galaxy_info: author: Jason Rothstein description: Ensure time zone is configured, and cron restarted if there is a change - 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 + company: fdragon license: LGPL-3.0-or-later - min_ansible_version: 2.9 - - # 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 + min_ansible_version: '2.9' 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. diff --git a/roles/ensure_vim/meta/main.yml b/roles/ensure_vim/meta/main.yml index 9fc0b95..3d9ffb3 100644 --- a/roles/ensure_vim/meta/main.yml +++ b/roles/ensure_vim/meta/main.yml @@ -1,50 +1,9 @@ --- 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.9 - - # 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 + author: Jason Rothstein + description: Ensures vim is installed, running, and functional + company: fdragon + license: LGPL-3.0-or-later + min_ansible_version: '2.9' 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. diff --git a/roles/requirements.yml b/roles/requirements.yml index d78069f..7265dc5 100644 --- a/roles/requirements.yml +++ b/roles/requirements.yml @@ -1,2 +1,2 @@ --- -roles: +roles: []