first commit
This commit is contained in:
27
linux_onboard.yml
Normal file
27
linux_onboard.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: dynamically add ip of target
|
||||
become: true
|
||||
hosts: localhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: make host group from survey hosts list
|
||||
add_host:
|
||||
hostname: "{{ipaddr|trim}}"
|
||||
groups: new_group
|
||||
|
||||
- name: linux Onboard
|
||||
become: true
|
||||
# become_method: runas
|
||||
hosts: new_group,!localhost
|
||||
roles:
|
||||
# - role: linux_update
|
||||
- role: linux_onboard-adagility
|
||||
vars:
|
||||
ansible_user: "{{user}}"
|
||||
ansible_ssh_pass: "{{pass}}"
|
||||
ansible_become_pass: "{{pass}}"
|
||||
admin_account: "{{ admin_acc }}"
|
||||
admin_password: "{{ admin_pass }}"
|
||||
hostname: "{{ host }}"
|
||||
tstaccprd: "{{ stage }}"
|
||||
|
||||
Reference in New Issue
Block a user