Compare commits

...

1 Commits

Author SHA1 Message Date
Jérémy Lecour e77d1d1b17 [WIP] ansible-managed role 2017-07-19 13:57:24 +02:00
6 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,28 @@
---
driver:
name: docker
privileged: true
use_sudo: false
provisioner:
name: ansible_playbook
hosts: test-kitchen
roles_path: ../
ansible_verbose: true
require_ansible_source: false
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian
driver_config:
image: evolix/ansible:2.2.1
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

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,6 @@
---
- name: Set message of the day
template:
src: motd.j2
dest: /etc/motd
force: yes

View File

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

View File

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: ansible-managed