Skip to content

Commit

Permalink
Lots of updates, because of course
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-hellings committed Mar 4, 2021
1 parent aaba47c commit 2aa5ecf
Show file tree
Hide file tree
Showing 31 changed files with 57 additions and 30 deletions.
2 changes: 1 addition & 1 deletion roles/authorized_key/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: Gives myself SSH authorized key access
license: GPLv3
min_ansible_version: 2.4
Expand Down
2 changes: 1 addition & 1 deletion roles/common/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Fixes a few basic inconsistencies in low-level Fedora machines, such as
updating the base vim package (it's had issues in the past), and disabling
Expand Down
2 changes: 1 addition & 1 deletion roles/copy_or_link/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
If the connection is a remote connection, this role will copy the files
to the target machine. If the connection is local, then the role will
Expand Down
1 change: 1 addition & 0 deletions roles/copy_or_link/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
file:
state: touch
dest: /root/second
mode: 0600
6 changes: 6 additions & 0 deletions roles/copy_or_link/molecule/local/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
file:
state: touch
dest: /root/second
mode: 0600

- name: install ansible
package:
Expand All @@ -15,16 +16,19 @@
dest: /root/temp/roles
state: directory
recurse: true
mode: 0700

- name: create inventory file
copy:
content: "localhost ansible_connection=local"
dest: /root/temp/inventory
mode: 0644

- name: create test files
copy:
src: "{{ item }}"
dest: /root/temp/
mode: 0644
loop:
- "{{ lookup('env', 'MOLECULE_SCENARIO_DIRECTORY')
}}/../shared/first"
Expand All @@ -37,10 +41,12 @@
copy:
src: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}"
dest: /root/temp/roles/
mode: 0644

- name: copy action_plugin
copy:
src: >-
{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY')
}}/../../plugins/action/copy_or_link.py
dest: /root/temp/roles/copy_or_link/action_plugins/
mode: 0644
2 changes: 1 addition & 1 deletion roles/dev/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
Sets up a system as a basic development box
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/dhcpd/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: Configures a basic DHCP server on CentOS
license: GPLv3
min_ansible_version: 2.4
Expand Down
2 changes: 1 addition & 1 deletion roles/disable_deltarpm/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: Simply disables deltarpm settings
license: GPLv3
min_ansible_version: 2.4
Expand Down
2 changes: 1 addition & 1 deletion roles/dns_server/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
Installs and configures bind/named to serve names on the local network
license: GPLv3
Expand Down
1 change: 1 addition & 0 deletions roles/dotfiles/files/bash_shared
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export SWORD_PATH=$HOME/.sword
export ANSIBLE_COLLECTIONS_PATHS=${HOME}/src/:${HOME}/.ansible
export OS_CLOUD=default
export GIT_SSL_NO_VERIFY=True
#export VAGRANT_DEFAULT_PROVIDER=virtualbox
color_prompt="yes"
if [ "$color_prompt" = yes ]; then
Expand Down
2 changes: 1 addition & 1 deletion roles/dotfiles/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Configures bashrc and other user-directory files the way I like them
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/flatpak/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: Ensures that flatpak is installed on the host
license: GPLv3
min_ansible_version: 2.8
Expand Down
5 changes: 2 additions & 3 deletions roles/flatpaks/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
galaxy_info:
author: Author Name
description: My Description
company: Red Hat, Inc.
author: devroles
description: Installs the flatpaks I want on my system
license: GPLv3
min_ansible_version: 2.8
platforms:
Expand Down
2 changes: 1 addition & 1 deletion roles/jenkins/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Installs Java and basic things needed before installing Jenkins masters
or Swarm clients
Expand Down
2 changes: 1 addition & 1 deletion roles/jenkins_configure/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Configures an already-running Jenkins master
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/jenkins_master/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Installs a Jenkins Master on a properly prepared system
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/mariadb/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Author Name
author: devroles
description: My Description
company: Red Hat, Inc.
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/mirror/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Configures an rsync script to mirror down content to the local system
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/mounts/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
Ensures that mount points exist on the system and that they are mounted and
recorded in /etc/fstab
Expand Down
3 changes: 1 addition & 2 deletions roles/mounts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
when: ansible_facts.pkg_mgr not in ['atomic_container']

- name: ensure mount
include:
file: mount.yml
include_tasks: mount.yml
with_items: "{{ mounts }}"
2 changes: 1 addition & 1 deletion roles/mta/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
Installs and configures a mail agent (MTA) on the target host
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion roles/mythtv/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: Installs mythtv, particularly for Hauppage 950 cards
license: GPLv3
min_ansible_version: 2.4
Expand Down
2 changes: 1 addition & 1 deletion roles/packages/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
Installs the command line utilities, programs, libraries, and services that
I find useful on my systems. Also configures a large number of system repos
Expand Down
2 changes: 1 addition & 1 deletion roles/packages/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packages_rpmfusion:
# yamllint diable rule:line-length
# yamllint disable rule:line-length
- https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_facts.distribution_major_version }}.noarch.rpm
- https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_facts.distribution_major_version }}.noarch.rpm
packages_gpg_keys:
Expand Down
2 changes: 1 addition & 1 deletion roles/python_prep/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: >-
Sometimes the Python on a target system needs a little bit of extra
massaging before it's completely ready for use on the target host. This
Expand Down
2 changes: 1 addition & 1 deletion roles/static_ip/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: Sets a static IP address for NetworkManager connections
license: GPLv3
min_ansible_version: 2.4
Expand Down
2 changes: 1 addition & 1 deletion roles/sudoers/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Make sure that sudo is installed on the system and the
given list of users are provided with appropriate levels
Expand Down
2 changes: 1 addition & 1 deletion roles/virtualenv_ansible_python/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Creates a temporary virtualenv that contains the packages specified
and sets that as the ansible_python_interpreter
Expand Down
2 changes: 1 addition & 1 deletion roles/webserver/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
galaxy_info:
author: Greg Hellings
author: devroles
description: |-
Configures a basic webserver
license: GPLv3
Expand Down
2 changes: 1 addition & 1 deletion tests
Submodule tests updated 2 files
+1 −0 ansible-lint
+1 −0 yamllint.yml
21 changes: 21 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ requires = tox-ansible
molecule_opts =
-c
{toxinidir}/tests/molecule.yml
ansible_lint_config = {toxinidir}/tests/ansible-lint
yamllint_config = {toxinidir}/tests/yamllint.yml

[flake8]
exclude =
.tox,
.cache

[testenv]
usedevelop = false
Expand All @@ -21,3 +28,17 @@ passenv =
PS1
setenv =
ANSIBLE_COLLECTIONS_PATHS={toxinidir}/../../../

[testenv:lint]
usedevelop = false
skip_install = true
setenv =
ANSIBLE_COLLECTIONS_PATHS={toxinidir}/../../../
deps =
ansible-lint
flake8
ansible
allowlist_externals =
bash
commands =
bash -c "ansible-lint -R -r {toxinidir}/tests/ansible_lint_rules -c {toxinidir}/tests/ansible-lint roles/*"

0 comments on commit 2aa5ecf

Please sign in to comment.