Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control basics]$ history
- 1 ip a
- 2 sudo vim /etc/hosts
- 3 ssh root@ansible1
- 4 sudo dnf search ansible
- 5 sudo dnf install ansible-core
- 6 ansible --version
- 7 history
- 8 vim inventory
- 9 ansible -i inventory all -m command -a "useradd ansible"
- 10 ping ansible2
- 11 ping ansible1
- 12 ansible -i inventory all -m command -a "useradd ansible" -k
- 13 ssh ansible1
- 14 ssh root@ansible1
- 15 ssh root@ansible2
- 16 ansible -i inventory all -m command -a "useradd ansible" -k -u root
- 17 ansible -i inventory all -m command -a "useradd ansible" -k -u student -b -K
- 18 history
- 19 sudo echo password | passwd --stdin ansible
- 20 sudo sh -c 'echo password | passwd --stdin ansible'
- 21 ansible -i inventory -m command -a "rpm -qa | grep bash"
- 22 ansible -i inventory all -m command -a "rpm -qa | grep bash"
- 23 ansible -i inventory all -m command -a "rpm -qa | grep bash" -k
- 24 ansible -i inventory all -m command -a "rpm -qa | grep bash" -k -u root
- 25 ansible -i inventory all -m shell -a "rpm -qa | grep bash" -k -u root
- 26 ansible -i inventory all -m shell -a "echo password | passwd --stdin ansible" -k -u root
- 27 ansible -i inventory all -m command -a "whoami" -k
- 28 ansible -i inventory all -m command -a "ls -l /root" -k
- 29 ansible -i inventory all -m command -a "ls -l /root" -k -b
- 30 ansible -i inventory all -m command -a "ls -l /root" -k -b -K
- 31 sudo dnf install git
- 32 git clone https://github.com/sandervanvugt/ansiblein3weeks
- 33 cd ansiblein3weeks/
- 34 ls
- 35 history
- 36 ansible-doc copy
- 37 #ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 38 sudo visudo
- 39 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 40 cat inventory
- 41 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 42 ansible -i inventory all -m command -a "ls -l /root" -k -b -K
- 43 history
- 44 ssh-keygen
- 45 ssh-copy-id ansible1.example.com
- 46 ssh-copy-id ansible2.example.com
- 47 ssh-copy-id control.example.com
- 48 ansible -i inventory all -m command -a "ls -l /root" -b
- 49 history
- 50 ansible -i inventory all -m command -a "useradd lisa" -b
- 51 ansible -i inventory all -m user -a "name=lisa" -b
- 52 history
- 53 ansible -i inventory all -m command -a "date"
- 54 vim ansible.cfg
- 55 ansible all -m command -a "date"
- 56 ansible all -m command -a "ls -l /root"
- 57 ansible all -m command -a "ls -l /root" -b
- 58 history
- 59 ansible --version
- 60 ansible-doc -l
- 61 ansible-doc -l | wc
- 62 ansible-galaxy collection install azure.azcollection
- 63 ansible-doc -l
- 64 cd basics/
- 65 ls
- 66 history | grep git
- 67 ls
- 68 vim run_and_test_httpd.yaml
- 69 ln ../inventory inventory
- 70 ln ../ansible.cfg ansible.cfg
- 71 vim inventory
- 72 vim ansible.cfg
- 73 ansible-playbook run_and_test_httpd.yaml
- 74 vim ansible.cfg
- 75 vim run_and_test_httpd.yaml
- 76 ansible-playbook run_and_test_httpd.yaml
- 77 vim run_and_test_httpd.yaml
- 78 ansible ansible2 -a "firewall-cmd --list-all" -b
- 79 ansible-doc firewalld
- 80 history | grep collection
- 81 ansible-galaxy collection install ansible.posix
- 82 ansible-doc -l | grep posix
- 83 ansible-doc firewalld
- 84 vim run_and_test_httpd.yaml
- 85 ansible-playbook run_and_test_httpd.yaml
- 86 vim run_and_test_httpd.yaml
- 87 curl ansible2
- 88 curl http://ansible2
- 89 ping ansible2
- 90 curl https://ansible2
- 91 history
- 92 ansible ansible2 -a "firewall-cmd --list-all" -b
- 93 vim run_and_test_httpd.yaml
- 94 ansible-playbook run_and_test_httpd.yaml
- 95 curl http://ansible2
- 96 vim run_and_test_httpd.yaml
- 97 ansible-doc uri
- 98 vim run_and_test_httpd.yaml
- 99 ansible-playbook run_and_test_httpd.yaml
- 100 vim run_and_test_httpd.yaml
- 101 ls
- 102 vim variables_example.yaml
- 103 ansible-playbook variables_example.yaml
- 104 ansible-playbook variables_example.yaml -e user=bob
- 105 vim variables_example.yaml
- 106 ansible-playbook variables_example.yaml -e user=bob
- 107 ../countdown 18
- 108 ls
- 109 vim gather_facts.yaml
- 110 ansible-playbook gather_facts.yaml | less
- 111 vim gather_facts.yaml
- 112 ansible-playbook gather_facts.yaml
- 113 ansible ansible1 -m setup | less
- 114 vim old_facts.yaml
- 115 ansible-playbook old_facts.yaml
- 116 vim new_facts.yaml
- 117 ansible-playbook new_facts.yaml
- 118 vim new_facts.yaml
- 119 ansible ansible1 -m setup | less
- 120 vim myvars.yaml
- 121 vim vars_file.yaml
- 122 ansible-playbook vars_file.yaml
- 123 ansible-playbook vars_file.yaml -b
- 124 ls
- 125 vim inventory
- 126 mkdir web
- 127 vim web/group_vars
- 128 vim vars_file.yaml
- 129 ansible-playbook vars_file.yaml
- 130 ls
- 131 vim inventory
- 132 vim web/group_vars
- 133 mkdir group_vars
- 134 mv web/group_vars group_vars/web
- 135 ansible-playbook vars_file.yaml
- 136 ansible-playbook vars_file.yaml -b
- 137 vim vars_file.yaml
- 138 ls\
- 139 ls
- 140 rm -rf web/
- 141 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement