playbook role
This commit is contained in:
parent
46806abf5f
commit
40c03f65eb
6
hosts
6
hosts
@ -1 +1,7 @@
|
||||
[vms]
|
||||
vm1 ansible_host=51.255.97.178
|
||||
vm2 ansible_host=51.255.97.186
|
||||
|
||||
[vms:vars]
|
||||
ansible_user=ubuntu
|
||||
ansible_ssh_private_key_file=/home/ubuntu/.ssh/id_rsa
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
|
||||
|
||||
- src: git@git.felcloud.io:felcloud/ansible_roles_base.git
|
||||
version: 0.0.4
|
||||
@ -6,11 +6,4 @@
|
||||
accept_hostkey: yes
|
||||
name: base
|
||||
|
||||
- src: git@git.felcloud.io:felcloud/ansible_roles_ssh.git
|
||||
version: 0.0.1
|
||||
scm: git
|
||||
accept_hostkey: yes
|
||||
name: ssh
|
||||
|
||||
|
||||
|
||||
|
9
run_role_base.yml
Normal file
9
run_role_base.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- hosts: vms
|
||||
become: true
|
||||
remote_user: ubuntu
|
||||
tasks:
|
||||
- name: "Include role_base"
|
||||
include_role:
|
||||
name: base
|
||||
|
Loading…
Reference in New Issue
Block a user