playbook role

This commit is contained in:
faten 2025-01-20 15:39:53 +00:00
parent 46806abf5f
commit 40c03f65eb
3 changed files with 16 additions and 8 deletions

6
hosts
View File

@ -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

View File

@ -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
View File

@ -0,0 +1,9 @@
---
- hosts: vms
become: true
remote_user: ubuntu
tasks:
- name: "Include role_base"
include_role:
name: base