mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
9 years ago
|
---
|
||
|
|
||
|
- hosts: localhost
|
||
|
tags: [ 'min' ]
|
||
|
connection: local
|
||
|
gather_subset: "min"
|
||
|
ignore_facter: yes
|
||
|
ignore_ohai: yes
|
||
|
gather_facts: yes
|
||
|
tasks:
|
||
|
- debug: var={{item}}
|
||
|
with_items: [ 'ansible_user_id', 'ansible_interfaces', 'ansible_mounts', 'ansible_virtualization_role' ]
|
||
|
|
||
|
- hosts: localhost
|
||
|
tags: [ 'network' ]
|
||
|
connection: local
|
||
|
gather_subset: "network"
|
||
|
ignore_facter: yes
|
||
|
ignore_ohai: yes
|
||
|
gather_facts: yes
|
||
|
tasks:
|
||
|
- debug: var={{item}}
|
||
|
with_items: [ 'ansible_user_id', 'ansible_interfaces', 'ansible_mounts', 'ansible_virtualization_role' ]
|
||
|
|
||
|
- hosts: localhost
|
||
|
tags: [ 'hardware' ]
|
||
|
connection: local
|
||
|
gather_subset: "hardware"
|
||
|
ignore_facter: yes
|
||
|
ignore_ohai: yes
|
||
|
gather_facts: yes
|
||
|
tasks:
|
||
|
- debug: var={{item}}
|
||
|
with_items: [ 'ansible_user_id', 'ansible_interfaces', 'ansible_mounts', 'ansible_virtualization_role' ]
|
||
|
|
||
|
- hosts: localhost
|
||
|
tags: [ 'virtual' ]
|
||
|
connection: local
|
||
|
gather_subset: "virtual"
|
||
|
ignore_facter: yes
|
||
|
ignore_ohai: yes
|
||
|
gather_facts: yes
|
||
|
tasks:
|
||
|
- debug: var={{item}}
|
||
|
with_items: [ 'ansible_user_id', 'ansible_interfaces', 'ansible_mounts', 'ansible_virtualization_role' ]
|