Compare commits
No commits in common. "master" and "v2.0.0" have entirely different histories.
|
@ -1,9 +1,3 @@
|
||||||
## v2.0.1
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
* Use flatten to manage packages list.
|
|
||||||
* Prefix module with "ansible.builtin.".
|
|
||||||
|
|
||||||
## v2.0.0
|
## v2.0.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
|
@ -62,7 +62,7 @@ Jérémy Gardais
|
||||||
* [IPR][ipr website] (Institut de Physique de Rennes)
|
* [IPR][ipr website] (Institut de Physique de Rennes)
|
||||||
|
|
||||||
[gogs to github hook]: https://stackoverflow.com/a/21998477
|
[gogs to github hook]: https://stackoverflow.com/a/21998477
|
||||||
[arpwatch source]: https://git.ipr.univ-rennes.fr/cellinfo/ansible.arpwatch
|
[arpwatch source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.arpwatch
|
||||||
[arpwatch github]: https://github.com/ipr-cnrs/arpwatch
|
[arpwatch github]: https://github.com/ipr-cnrs/arpwatch
|
||||||
[wtfpl website]: http://www.wtfpl.net/about/
|
[wtfpl website]: http://www.wtfpl.net/about/
|
||||||
[ipr website]: https://ipr.univ-rennes1.fr/
|
[ipr website]: https://ipr.univ-rennes1.fr/
|
||||||
|
|
|
@ -7,7 +7,7 @@ galaxy_info:
|
||||||
description: "Manage Arpwatch installation and configuration"
|
description: "Manage Arpwatch installation and configuration"
|
||||||
license: WTFPL
|
license: WTFPL
|
||||||
company: IPR
|
company: IPR
|
||||||
issue_tracker_url: https://git.ipr.univ-rennes.fr/cellinfo/ansible.arpwatch/issues
|
issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.arpwatch/issues
|
||||||
min_ansible_version: 2.9
|
min_ansible_version: 2.9
|
||||||
platforms:
|
platforms:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
|
|
|
@ -5,17 +5,19 @@
|
||||||
|
|
||||||
# Manage required system packages [[[1
|
# Manage required system packages [[[1
|
||||||
- name: Ensure required packages are in there desired state
|
- name: Ensure required packages are in there desired state
|
||||||
ansible.builtin.package:
|
package:
|
||||||
name: '{{ arpwatch__base_packages | flatten }}'
|
name: '{{ item }}'
|
||||||
state: 'present'
|
state: 'present'
|
||||||
install_recommends: False
|
install_recommends: False
|
||||||
|
with_flattened:
|
||||||
|
- '{{ arpwatch__base_packages | to_nice_json }}'
|
||||||
register: pkg_result
|
register: pkg_result
|
||||||
until: pkg_result is success
|
until: pkg_result is success
|
||||||
when: arpwatch__enabled|bool
|
when: arpwatch__enabled|bool
|
||||||
|
|
||||||
# Manage service default [[[1
|
# Manage service default [[[1
|
||||||
- name: Manage service default
|
- name: Manage service default
|
||||||
ansible.builtin.template:
|
template:
|
||||||
src: 'etc/default/arpwatch.j2'
|
src: 'etc/default/arpwatch.j2'
|
||||||
dest: "/etc/default/arpwatch"
|
dest: "/etc/default/arpwatch"
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
|
|
||||||
# Manage service [[[1
|
# Manage service [[[1
|
||||||
- name: Manage arpwatch service by network interface
|
- name: Manage arpwatch service by network interface
|
||||||
ansible.builtin.service:
|
service:
|
||||||
name: '{{ arpwatch__service_name }}@{{ item }}'
|
name: '{{ arpwatch__service_name }}@{{ item }}'
|
||||||
state: '{{ "started" if ((arpwatch__enabled | d(True) | bool) and
|
state: '{{ "started" if ((arpwatch__enabled | d(True) | bool) and
|
||||||
(arpwatch__service_manage | d(True) | bool))
|
(arpwatch__service_manage | d(True) | bool))
|
||||||
|
|
Loading…
Reference in New Issue