Last active
July 31, 2017 07:01
-
-
Save tzutalin/fa5c85d0b74098d184813759654ee23d to your computer and use it in GitHub Desktop.
Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Installl packages for localhost | |
hosts: "{{ cluster_name }}" | |
#hosts: all | |
become: true | |
tasks: | |
- name: install the latest version of vim | |
package: | |
name: vim | |
state: latest | |
tasks: | |
- name: install the latest version of curl | |
package: | |
name: curl | |
state: latest | |
tasks: | |
- name: install the latest version of git | |
package: | |
name: git | |
state: latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[k8s_test] | |
[k8s_test:children] | |
k8s_test_master | |
k8s_test_node | |
[k8s_test_master] | |
192.168.56.101 | |
[k8s_test_master:vars] | |
# master_ip_address_configured=1.2.3.4 | |
[k8s_test_node] | |
192.168.56.102 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ ansible-playbook -vvvv basic-tools.yaml -e cluster_name=k8s_test -i intentory --user --ask-sudo-pass