Compare commits
2 Commits
3993f20716
...
5e777b489a
Author | SHA1 | Date |
---|---|---|
Jeremy Gardais | 5e777b489a | |
Jeremy Gardais | 82833be113 |
|
@ -1,3 +1,9 @@
|
|||
## v2.0.1
|
||||
|
||||
### Fix
|
||||
* Use flatten to manage packages list.
|
||||
* Prefix module with "ansible.builtin.".
|
||||
|
||||
## v2.0.0
|
||||
|
||||
### Features
|
||||
|
|
|
@ -5,19 +5,17 @@
|
|||
|
||||
# Manage required system packages [[[1
|
||||
- name: Ensure required packages are in there desired state
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
ansible.builtin.package:
|
||||
name: '{{ arpwatch__base_packages | flatten }}'
|
||||
state: 'present'
|
||||
install_recommends: False
|
||||
with_flattened:
|
||||
- '{{ arpwatch__base_packages | to_nice_json }}'
|
||||
register: pkg_result
|
||||
until: pkg_result is success
|
||||
when: arpwatch__enabled|bool
|
||||
|
||||
# Manage service default [[[1
|
||||
- name: Manage service default
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: 'etc/default/arpwatch.j2'
|
||||
dest: "/etc/default/arpwatch"
|
||||
owner: root
|
||||
|
@ -29,7 +27,7 @@
|
|||
|
||||
# Manage service [[[1
|
||||
- name: Manage arpwatch service by network interface
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: '{{ arpwatch__service_name }}@{{ item }}'
|
||||
state: '{{ "started" if ((arpwatch__enabled | d(True) | bool) and
|
||||
(arpwatch__service_manage | d(True) | bool))
|
||||
|
|
Loading…
Reference in New Issue