Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrothstein committed Jan 22, 2024
1 parent ba3896d commit 7701edd
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .config/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
skip_list:
- 'name[template]'
3 changes: 3 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
rules:
line-length: disable
11 changes: 6 additions & 5 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ galaxy_info:
- development
license: MIT
min_ansible_version: '2.0'
namespace: andrewrothstein
platforms:
- name: Alpine
versions:
- all
- name: Archlinux
- name: ArchLinux
versions:
- all
- name: Debian
Expand All @@ -20,12 +21,12 @@ galaxy_info:
- bullseye
- name: EL
versions:
- 8
- 9
- '8'
- '9'
- name: Fedora
versions:
- 38
- 39
- '38'
- '39'
- name: Ubuntu
versions:
- focal
Expand Down
2 changes: 1 addition & 1 deletion meta/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
- name: andrewrothstein.unarchivedeps
version: 3.0.0
version: 3.0.1
2 changes: 1 addition & 1 deletion platform-matrix-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"OS": "ubuntu",
"OS_VER": "jammy"
}
]
]
8 changes: 5 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- ansible.builtin.include_role:
- name: Installing andrewrothstein.unarchivedeps
ansible.builtin.include_role:
name: andrewrothstein.unarchivedeps
- name: Resolve platform specific vars
ansible.builtin.include_vars: '{{ item }}'
Expand All @@ -18,7 +19,8 @@
path: '{{ matchbox_install_dir }}'
changed_when: false
register: matchbox_binary
- when: not matchbox_binary.stat.exists
- name: Downloading and installing matchbox
when: not matchbox_binary.stat.exists
block:
- name: Downloading {{ matchbox_tgz_url }}
become: true
Expand All @@ -28,7 +30,7 @@
dest: '{{ matchbox_tmp_tgz }}'
checksum: '{{ matchbox_checksum }}'
mode: '644'
- name: unarchiving {{ matchbox_tmp_tgz }} to {{ matchbox_install_parent_dir }}
- name: Unarchiving {{ matchbox_tmp_tgz }} to {{ matchbox_install_parent_dir }}
become: true
become_user: root
ansible.builtin.unarchive:
Expand Down
16 changes: 10 additions & 6 deletions test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
- hosts: all
roles:
- role: '{{ playbook_dir }}'
- name: Testing andrewrothstein.matchbox
hosts: all
tasks:
- command: /usr/local/bin/matchbox --version
- name: Installing andrewrothstein.matchbox
ansible.builtin.include_role:
name: '{{ playbook_dir }}'
- name: Executing 'matchbox --version'
ansible.builtin.command: /usr/local/bin/matchbox --version
changed_when: false
register: matchbox_test_output
- name: matchbox --version
debug:
- name: Output from 'matchbox --version'
ansible.builtin.debug:
msg: '{{ matchbox_test_output.stdout }}'

0 comments on commit 7701edd

Please sign in to comment.