Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
|
78618dd3a4 | |
|
c18e9252ca | |
|
96226c2463 | |
|
654ffc8d43 | |
|
f32fe4f873 | |
|
4a0fa1c132 | |
|
78ba40f2eb |
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -1,4 +1,18 @@
|
||||||
## v1.X
|
## v1.1.2
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
* Fix E405 Remote package tasks should have a retry.
|
||||||
|
* Use to_nice_json to manage packages list.
|
||||||
|
* Fix E203 Most files should not contain tabs.
|
||||||
|
* Fix E404 Doesn't need a relative path in role.
|
||||||
|
|
||||||
|
## v1.1.1
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
* Set empty dependencies line to fix Galaxy warning.
|
||||||
|
* Deprecation warning in favor of debops.netbase and debops.resources role.
|
||||||
|
|
||||||
|
## v1.1.0
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
* Allow to install Resolvconf.
|
* Allow to install Resolvconf.
|
||||||
|
@ -24,7 +38,7 @@
|
||||||
* Purge /etc/hosts of multiple lines that contains $HOSTNAME without the default ipv4 ip address.
|
* Purge /etc/hosts of multiple lines that contains $HOSTNAME without the default ipv4 ip address.
|
||||||
* Purge conditions of /etc/hosts are the same as permanent ip address (ipv4).
|
* Purge conditions of /etc/hosts are the same as permanent ip address (ipv4).
|
||||||
|
|
||||||
## v1.0
|
## v1.0.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
* Manage localhost line in /etc/hosts.
|
* Manage localhost line in /etc/hosts.
|
||||||
|
|
11
README.md
11
README.md
|
@ -1,5 +1,11 @@
|
||||||
# Basics
|
# Basics
|
||||||
|
|
||||||
|
This content is mainly deprecated and i start using [Debops Netbase role][debops netbase role]
|
||||||
|
which comes with most of this configuration (more and better).
|
||||||
|
The [Debops Ifupdown role][debops ifupdown role] can manage the DNS search and nameservers,
|
||||||
|
[see the documentation][debops ifupdown dns] for more informations and the
|
||||||
|
[Debops Resolvconf role][debops resolvconf role] can also give more possibilities.
|
||||||
|
|
||||||
1. [Overview](#overview)
|
1. [Overview](#overview)
|
||||||
2. [Role Variables](#role-variables)
|
2. [Role Variables](#role-variables)
|
||||||
3. [Example Playbook](#example-playbook)
|
3. [Example Playbook](#example-playbook)
|
||||||
|
@ -47,7 +53,7 @@ Manage some basics configuration for IPR's servers.
|
||||||
- role: ipr-cnrs.basics
|
- role: ipr-cnrs.basics
|
||||||
basics__domain: 'mydomain.org'
|
basics__domain: 'mydomain.org'
|
||||||
basics__hosts_ipv4_manage: true
|
basics__hosts_ipv4_manage: true
|
||||||
````
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
@ -91,3 +97,6 @@ Jérémy Gardais
|
||||||
[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/
|
||||||
[wiki proxmox lxc]: https://pve.proxmox.com/wiki/Linux_Container#_guest_operating_system_configuration
|
[wiki proxmox lxc]: https://pve.proxmox.com/wiki/Linux_Container#_guest_operating_system_configuration
|
||||||
|
[debops netbase role]: https://docs.debops.org/en/master/ansible/roles/debops.netbase/index.html
|
||||||
|
[debops ifupdown role]: https://docs.debops.org/en/master/ansible/roles/debops.ifupdown/index.html
|
||||||
|
[debops resolvconf role]: https://docs.debops.org/en/master/ansible/roles/debops.resolvconf/index.html
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: "Jérémy Gardais"
|
author: "Jérémy Gardais"
|
||||||
description: "Manage some basics configurations for IPR's servers."
|
description: "Manage some basics configurations for IPR's servers."
|
||||||
|
@ -9,14 +13,6 @@ galaxy_info:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
- stretch
|
- stretch
|
||||||
#- name: opensuse
|
|
||||||
# versions:
|
|
||||||
# - all
|
|
||||||
# - 12.1
|
|
||||||
# - 12.2
|
|
||||||
# - 12.3
|
|
||||||
# - 13.1
|
|
||||||
# - 13.2
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- system
|
- system
|
||||||
- debian
|
- debian
|
||||||
|
|
|
@ -54,12 +54,14 @@
|
||||||
state: 'present'
|
state: 'present'
|
||||||
install_recommends: False
|
install_recommends: False
|
||||||
with_flattened:
|
with_flattened:
|
||||||
- '{{ basics__resolvconf_packages }}'
|
- '{{ basics__resolvconf_packages | to_nice_json }}'
|
||||||
|
register: resolv_pkg_result
|
||||||
|
until: resolv_pkg_result is success
|
||||||
when: basics__resolvconf_enabled|bool
|
when: basics__resolvconf_enabled|bool
|
||||||
|
|
||||||
- name: Configure Resolvconf with domains
|
- name: Configure Resolvconf with domains
|
||||||
template:
|
template:
|
||||||
src: '../templates/etc/resolvconf/resolv.conf.d/base.j2'
|
src: 'etc/resolvconf/resolv.conf.d/base.j2'
|
||||||
dest: '/etc/resolvconf/resolv.conf.d/base'
|
dest: '/etc/resolvconf/resolv.conf.d/base'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
Reference in New Issue