Add a new role "ansible-managed"

This commit is contained in:
Jérémy Lecour 2017-04-24 09:46:19 +02:00 committed by Jérémy Lecour
parent 3f09d938eb
commit ce4e26eff9
4 changed files with 24 additions and 0 deletions

11
ansible-managed/README.md Normal file
View 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.

View File

@ -0,0 +1,2 @@
---
project_repository: "/!\ No repository set, contact Evolix"

View File

@ -0,0 +1,7 @@
---
- name: Set message of the day
template:
src: motd.j2
dest: /etc/motd
force: yes
backup: yes

View File

@ -0,0 +1,4 @@
SERVER MANAGED BY EVOLIX VIA ANSIBLE
------------------------------------
{{ project_repository | mandatory }}