Add a new role "ansible-managed"
This commit is contained in:
parent
3f09d938eb
commit
ce4e26eff9
11
ansible-managed/README.md
Normal file
11
ansible-managed/README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# ansible-managed
|
||||||
|
|
||||||
|
Set some indications that the server is managed by Ansible and extra care yshould be given not no mess with it manually.
|
||||||
|
|
||||||
|
## Tasks
|
||||||
|
|
||||||
|
Everything is in the `tasks/main.yml` file.
|
||||||
|
|
||||||
|
## Available variables
|
||||||
|
|
||||||
|
* `project_repository` : project URL for the repository.
|
2
ansible-managed/defaults/main.yml
Normal file
2
ansible-managed/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
project_repository: "/!\ No repository set, contact Evolix"
|
7
ansible-managed/tasks/main.yml
Normal file
7
ansible-managed/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: Set message of the day
|
||||||
|
template:
|
||||||
|
src: motd.j2
|
||||||
|
dest: /etc/motd
|
||||||
|
force: yes
|
||||||
|
backup: yes
|
4
ansible-managed/templates/motd.j2
Normal file
4
ansible-managed/templates/motd.j2
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
SERVER MANAGED BY EVOLIX VIA ANSIBLE
|
||||||
|
------------------------------------
|
||||||
|
{{ project_repository | mandatory }}
|
Loading…
Reference in a new issue