init
This commit is contained in:
11
ansible/playbooks/node/change_hostname.yml
Normal file
11
ansible/playbooks/node/change_hostname.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: change hostname
|
||||
hosts: test
|
||||
become: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: node/change_hostname
|
||||
vars:
|
||||
hostname: "dev-lviv01-vm-k8s-worker-01"
|
||||
|
||||
# ansible-playbook playbooks/node/change_hostname.yml -i inventory-local.ini
|
||||
11
ansible/playbooks/node/execute_command.yml
Normal file
11
ansible/playbooks/node/execute_command.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: execute command
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: node/execute_command
|
||||
vars:
|
||||
command: "{{ command }}"
|
||||
|
||||
# ansible-playbook playbooks/node/execute_command.yml -i inventory.ini
|
||||
11
ansible/playbooks/node/push_dir.yml
Normal file
11
ansible/playbooks/node/push_dir.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: push dir
|
||||
hosts: all
|
||||
become: true
|
||||
roles:
|
||||
- role: node/push_dir
|
||||
vars:
|
||||
resource_dir: "{{ resource_dir }}"
|
||||
target_dir: "{{ target_dir }}"
|
||||
|
||||
# ansible-playbook playbooks/node/push_dir.yml -i inventory.ini
|
||||
10
ansible/playbooks/node/remove_file.yml
Normal file
10
ansible/playbooks/node/remove_file.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: remove file
|
||||
hosts: all
|
||||
become: true
|
||||
roles:
|
||||
- role: node/remove_file
|
||||
vars:
|
||||
file_path: "{{ file_path }}"
|
||||
|
||||
# ansible-playbook playbooks/node/remove_file.yml -i inventory.ini
|
||||
10
ansible/playbooks/node/remove_user.yml
Normal file
10
ansible/playbooks/node/remove_user.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: remove user
|
||||
hosts: all
|
||||
become: true
|
||||
roles:
|
||||
- role: node/remove_user
|
||||
vars:
|
||||
user_name: "{{ remove_user }}"
|
||||
|
||||
# ansible-playbook playbooks/node/remove_user.yml -i inventory.ini
|
||||
Reference in New Issue
Block a user