Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
feat(GEERLINGGUY.MAC): support new collections format
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Jun 8, 2021
1 parent 98134e4 commit 4d83a9c
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 13 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ ClamAV should be granted `Full Disk Access`. This requires making the appropria
Requirements
------------

None
- Homebrew must aleady be present on the machine ([geerlingguy.mac.hombrew](https://github.com/geerlingguy/ansible-collection-mac) is a great solution for this).
- See the [homebrew website](https://brew.sh/) for further details about this tool.

Role Variables
--------------
Expand Down Expand Up @@ -57,14 +58,16 @@ Role Variables
Dependencies
------------

- geerlingguy.homebrew
None

Example Playbook
----------------

```yaml
- hosts: email
roles:
- role: elliotweiser.osx-command-line-tools
- role: geerlingguy.mac.homebrew
- role: osx_provisioner.clamav
clamav_clamwatch: true
clamav_clamwatch_target_folder: "{{ lookup('env','HOME') }}/Downloads"
Expand Down
3 changes: 1 addition & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ galaxy_info:
- antivirus
- clamav

dependencies:
- geerlingguy.homebrew
dependencies: []
5 changes: 2 additions & 3 deletions molecule/clamwatch/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
vars:
clamav_clamwatch: true
tasks:
- name: "Include ClamAV"
ansible.builtin.include_role:
name: "osx_provisioner.clamav"
- name: Include Roles
include_tasks: "../common/tasks/roles.yml"
3 changes: 3 additions & 0 deletions molecule/clamwatch/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
requirements-file: requirements.yml
driver:
name: delegated
options:
Expand Down
12 changes: 12 additions & 0 deletions molecule/common/tasks/roles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Include elliotweiser.osx-command-line-tools
ansible.builtin.include_role:
name: "elliotweiser.osx-command-line-tools"

- name: Include geerlingguy.mac.homebrew
ansible.builtin.include_role:
name: "geerlingguy.mac.homebrew"

- name: Include clamav
ansible.builtin.include_role:
name: "osx_provisioner.clamav"
5 changes: 2 additions & 3 deletions molecule/no_clamwatch/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
vars:
clamav_clamwatch: false
tasks:
- name: "Include ClamAV"
ansible.builtin.include_role:
name: "osx_provisioner.clamav"
- name: Include Roles
include_tasks: "../common/tasks/roles.yml"
3 changes: 3 additions & 0 deletions molecule/no_clamwatch/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
requirements-file: requirements.yml
driver:
name: delegated
options:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "role-clamav"
version = "0.1.1"
version = "0.2.0"
description = "Install ClamAV antivirus on OSX. Includes a simple realtime scan implementation that watches a configured folder."
authors = ["Niall Byrne <[email protected]>"]

Expand Down
8 changes: 6 additions & 2 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
- src: geerlingguy.homebrew
version: 3.1.0
roles:
- name: elliotweiser.osx-command-line-tools
version: 2.3.0
collections:
- name: geerlingguy.mac
version: 1.1.2

0 comments on commit 4d83a9c

Please sign in to comment.