Let's just create a role that populates the Linode inventory..
This commit is contained in:
16
playbooks/inventory/linode_inventory.yml
Normal file
16
playbooks/inventory/linode_inventory.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Build Inventory from Linode
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
|
||||
roles:
|
||||
- populate_inventory
|
||||
|
||||
- name: Test connection to Linode VMs
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Ping each Linode
|
||||
ansible.builtin.ping
|
||||
|
Reference in New Issue
Block a user