Install debsecan
This commit is contained in:
commit
40856f2e06
|
@ -0,0 +1,4 @@
|
|||
## v1.0
|
||||
|
||||
### Features
|
||||
* Install debsecan
|
|
@ -0,0 +1,58 @@
|
|||
# Debian Security
|
||||
|
||||
1. [Overview](#overview)
|
||||
2. [Role Variables](#role-variables)
|
||||
3. [Example Playbook](#example-playbook)
|
||||
4. [Configuration](#configuration)
|
||||
5. [Known Issues](#known-issues)
|
||||
6. [Development](#development)
|
||||
7. [License](#license)
|
||||
8. [Author Information](#author-information)
|
||||
|
||||
## Overview
|
||||
|
||||
A role that provide some security tools for Debian.
|
||||
|
||||
## Role Variables
|
||||
|
||||
* **deb_sec__required_packages** : List of required packages [default : `debsecan`]
|
||||
* **deb_sec__deploy_state** : The desired state this role should achieve. [default : `present`].
|
||||
|
||||
## Example Playbook
|
||||
|
||||
* Default behaviour :
|
||||
|
||||
``` yaml
|
||||
- hosts: my.debian.host
|
||||
roles:
|
||||
- role: ipr-cnrs.debian_security
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
This role will :
|
||||
* Install some security tools (eg. Debsecan,…).
|
||||
|
||||
## Development
|
||||
|
||||
This source code comes from our [Gogs instance][debian_security source] and the [Github repo][debian_security github] exist just to be able to send the role to Ansible Galaxy…
|
||||
|
||||
But feel free to send issue/PR anywhere :)
|
||||
|
||||
Thanks to this [hook][gogs to github hook], Github automatically got updates from our [Gogs instance][debian_security source] :)
|
||||
|
||||
## License
|
||||
|
||||
[WTFPL][wtfpl website]
|
||||
|
||||
## Author Information
|
||||
|
||||
Jérémy Gardais
|
||||
* Source : [on IPR's Gogs][debian_security source]
|
||||
* [IPR][ipr website] (Institut de Physique de Rennes)
|
||||
|
||||
[gogs to github hook]: https://stackoverflow.com/a/21998477
|
||||
[debian_security source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.debian_security
|
||||
[debian_security github]: https://github.com/ipr-cnrs.debian_security
|
||||
[wtfpl website]: http://www.wtfpl.net/about/
|
||||
[ipr website]: https://ipr.univ-rennes1.fr/
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
|
||||
# ipr-cnrs.debian_security default variables [[[
|
||||
# ==============================================
|
||||
|
||||
# Packages and installation [[[
|
||||
# -----------------------------
|
||||
|
||||
# .. envvar:: deb_sec__base_packages [[[
|
||||
#
|
||||
# List of base packages to install.
|
||||
deb_sec__required_packages:
|
||||
- 'debsecan'
|
||||
# ]]]
|
||||
# .. envvar:: deb_sec__deploy_state [[[
|
||||
#
|
||||
# What is the desired state which this role should achieve? Possible options:
|
||||
#
|
||||
# ``present``
|
||||
# Default. Ensure that required packages are installed and configured as
|
||||
# requested.
|
||||
#
|
||||
# ``absent``
|
||||
# Ensure that required packages are uninstalled and configuration removed.
|
||||
#
|
||||
deb_sec__deploy_state: 'present'
|
||||
# ]]]
|
||||
# ]]]
|
|
@ -0,0 +1,14 @@
|
|||
galaxy_info:
|
||||
author: "Jérémy Gardais"
|
||||
description: "Tools and configuration to secure Debian system"
|
||||
license: WTFPL
|
||||
company: IPR
|
||||
issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.debian_security/issues
|
||||
min_ansible_version: 2.5
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- stretch
|
||||
galaxy_tags:
|
||||
- debian
|
||||
- security
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
#
|
||||
# tasks file for debian_security
|
||||
|
||||
# Manage required system packages [[[1
|
||||
- name: Ensure required packages are in there desired state
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
state: '{{ "present" if (deb_sec__deploy_state == "present")
|
||||
else "absent" }}'
|
||||
install_recommends: False
|
||||
with_flattened:
|
||||
- '{{ deb_sec__required_packages }}'
|
|
@ -0,0 +1 @@
|
|||
localhost
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- debian_security
|
Loading…
Reference in New Issue