Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control factcache]$ history
- 1 cd ansiblein3weeks/
- 2 ./countdown 12
- 3 cd ansiblein3weeks/
- 4 ./countdown 1
- 5 cd ansiblein3weeks/
- 6 ./countdown 12
- 7 ip a
- 8 sudo vim /etc/hosts
- 9 ssh root@ansible1
- 10 sudo dnf search ansible
- 11 sudo dnf install ansible-core
- 12 ansible --version
- 13 history
- 14 vim inventory
- 15 ansible -i inventory all -m command -a "useradd ansible"
- 16 ping ansible2
- 17 ping ansible1
- 18 ansible -i inventory all -m command -a "useradd ansible" -k
- 19 ssh ansible1
- 20 ssh root@ansible1
- 21 ssh root@ansible2
- 22 ansible -i inventory all -m command -a "useradd ansible" -k -u root
- 23 ansible -i inventory all -m command -a "useradd ansible" -k -u student -b -K
- 24 history
- 25 sudo echo password | passwd --stdin ansible
- 26 sudo sh -c 'echo password | passwd --stdin ansible'
- 27 ansible -i inventory -m command -a "rpm -qa | grep bash"
- 28 ansible -i inventory all -m command -a "rpm -qa | grep bash"
- 29 ansible -i inventory all -m command -a "rpm -qa | grep bash" -k
- 30 ansible -i inventory all -m command -a "rpm -qa | grep bash" -k -u root
- 31 ansible -i inventory all -m shell -a "rpm -qa | grep bash" -k -u root
- 32 ansible -i inventory all -m shell -a "echo password | passwd --stdin ansible" -k -u root
- 33 ansible -i inventory all -m command -a "whoami" -k
- 34 ansible -i inventory all -m command -a "ls -l /root" -k
- 35 ansible -i inventory all -m command -a "ls -l /root" -k -b
- 36 ansible -i inventory all -m command -a "ls -l /root" -k -b -K
- 37 sudo dnf install git
- 38 git clone https://github.com/sandervanvugt/ansiblein3weeks
- 39 cd ansiblein3weeks/
- 40 ls
- 41 history
- 42 ansible-doc copy
- 43 #ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 44 sudo visudo
- 45 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 46 cat inventory
- 47 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 48 ansible -i inventory all -m command -a "ls -l /root" -k -b -K
- 49 history
- 50 ssh-keygen
- 51 ssh-copy-id ansible1.example.com
- 52 ssh-copy-id ansible2.example.com
- 53 ssh-copy-id control.example.com
- 54 ansible -i inventory all -m command -a "ls -l /root" -b
- 55 history
- 56 ansible -i inventory all -m command -a "useradd lisa" -b
- 57 ansible -i inventory all -m user -a "name=lisa" -b
- 58 history
- 59 ansible -i inventory all -m command -a "date"
- 60 vim ansible.cfg
- 61 ansible all -m command -a "date"
- 62 ansible all -m command -a "ls -l /root"
- 63 ansible all -m command -a "ls -l /root" -b
- 64 history
- 65 ansible --version
- 66 ansible-doc -l
- 67 ansible-doc -l | wc
- 68 ansible-galaxy collection install azure.azcollection
- 69 ansible-doc -l
- 70 cd basics/
- 71 ls
- 72 history | grep git
- 73 ls
- 74 vim run_and_test_httpd.yaml
- 75 ln ../inventory inventory
- 76 ln ../ansible.cfg ansible.cfg
- 77 vim inventory
- 78 vim ansible.cfg
- 79 ansible-playbook run_and_test_httpd.yaml
- 80 vim ansible.cfg
- 81 vim run_and_test_httpd.yaml
- 82 ansible-playbook run_and_test_httpd.yaml
- 83 vim run_and_test_httpd.yaml
- 84 ansible ansible2 -a "firewall-cmd --list-all" -b
- 85 ansible-doc firewalld
- 86 history | grep collection
- 87 ansible-galaxy collection install ansible.posix
- 88 ansible-doc -l | grep posix
- 89 ansible-doc firewalld
- 90 vim run_and_test_httpd.yaml
- 91 ansible-playbook run_and_test_httpd.yaml
- 92 vim run_and_test_httpd.yaml
- 93 curl ansible2
- 94 curl http://ansible2
- 95 ping ansible2
- 96 curl https://ansible2
- 97 history
- 98 ansible ansible2 -a "firewall-cmd --list-all" -b
- 99 vim run_and_test_httpd.yaml
- 100 ansible-playbook run_and_test_httpd.yaml
- 101 curl http://ansible2
- 102 vim run_and_test_httpd.yaml
- 103 ansible-doc uri
- 104 vim run_and_test_httpd.yaml
- 105 ansible-playbook run_and_test_httpd.yaml
- 106 vim run_and_test_httpd.yaml
- 107 ls
- 108 vim variables_example.yaml
- 109 ansible-playbook variables_example.yaml
- 110 ansible-playbook variables_example.yaml -e user=bob
- 111 vim variables_example.yaml
- 112 ansible-playbook variables_example.yaml -e user=bob
- 113 ../countdown 18
- 114 ls
- 115 vim gather_facts.yaml
- 116 ansible-playbook gather_facts.yaml | less
- 117 vim gather_facts.yaml
- 118 ansible-playbook gather_facts.yaml
- 119 ansible ansible1 -m setup | less
- 120 vim old_facts.yaml
- 121 ansible-playbook old_facts.yaml
- 122 vim new_facts.yaml
- 123 ansible-playbook new_facts.yaml
- 124 vim new_facts.yaml
- 125 ansible ansible1 -m setup | less
- 126 vim myvars.yaml
- 127 vim vars_file.yaml
- 128 ansible-playbook vars_file.yaml
- 129 ansible-playbook vars_file.yaml -b
- 130 ls
- 131 vim inventory
- 132 mkdir web
- 133 vim web/group_vars
- 134 vim vars_file.yaml
- 135 ansible-playbook vars_file.yaml
- 136 ls
- 137 vim inventory
- 138 vim web/group_vars
- 139 mkdir group_vars
- 140 mv web/group_vars group_vars/web
- 141 ansible-playbook vars_file.yaml
- 142 ansible-playbook vars_file.yaml -b
- 143 vim vars_file.yaml
- 144 ls\
- 145 ls
- 146 rm -rf web/
- 147 history
- 148 sudo poweroff
- 149 ssh-add ~/.ssh/id_rsa
- 150 ssh ansible1
- 151 ssh ansible2
- 152 vim securedo.yaml
- 153 ansible-playbook securedo.yaml
- 154 vim securedo.yaml
- 155 ansible-playbook securedo.yaml
- 156 ansible all -m copy -a "'content=ansible ALL=(ALL): ALL' dest=/etc/sudoers.d/ansible force=yes"
- 157 ansible all -m copy -a "content='ansible ALL=(ALL): ALL' dest=/etc/sudoers.d/ansible force=yes"
- 158 ansible all -m copy -a "content='ansible ALL=(ALL): ALL' dest=/etc/sudoers.d/ansible force=yes" -b
- 159 ansible all -a 'ls -l /root'
- 160 ansible all -a 'ls -l /root' -b
- 161 ansible all -a 'ls -l /root' -b -K
- 162 ssh ansible@ansible1
- 163 ssh ansible2
- 164 ansible all -a 'ls -l /root' -b -K
- 165 ansible all -a 'ls -l /root' -b
- 166 ../countdown 20
- 167 cd ../filters/
- 168 ls
- 169 vim int-filter.yaml
- 170 ansible-playbook int-filter.yaml
- 171 cp ../inventory .
- 172 cp ../ansible.cfg .
- 173 ansible-playbook int-filter.yaml
- 174 vim int-filter.yaml
- 175 ansible-playbook int-filter.yaml
- 176 vim int-filter.yaml
- 177 ansible-playbook int-filter.yaml
- 178 vim storage-filter.yaml
- 179 vim password_hash.yaml
- 180 ansible-playbook password_hash.yaml
- 181 ansible-playbook password_hash.yaml -b
- 182 vim assert_filter.yaml
- 183 ansible-playbook assert_filter.yaml
- 184 sudo dnf install -y python3-netaddr
- 185 ls
- 186 cd ..
- 187 ls
- 188 cd plugins/
- 189 ls
- 190 vim network.yaml
- 191 ansible-playbook network.yaml
- 192 cat ansible.cfg
- 193 cat inventory
- 194 cp ../inventory .
- 195 ansible-playbook network.yaml
- 196 ansible-galaxy collection install ansible.netcommon
- 197 ansible-playbook network.yaml
- 198 vim network.yaml
- 199 ansible-playbook network.yaml
- 200 #ansible-galaxy collection install ansible.netcommon
- 201 vim readkeys.yaml
- 202 ansible-playbook readkeys.yaml
- 203 vim readkeys.yaml
- 204 ls
- 205 ls ansible/id_rsa.pub
- 206 ansible-doc -t lookup -l
- 207 ansible-doc -t lookup file
- 208 ls
- 209 vim hello.yml
- 210 ansible-playbook hello.yml
- 211 find .. -name "mytemplate*"
- 212 cp ../templates/mytemplate.j2 .
- 213 ansible-playbook hello.yml
- 214 vim mytemplate.j2
- 215 ../countdown 9
- 216 vim nm-week3.yaml
- 217 vim ansible.cfg
- 218 ls
- 219 ansible-playbook hello.yml
- 220 ansible-inventory --yaml -i inventory --list --output inventory.yaml
- 221 vim ansible.cfg
- 222 ansible-inventory --yaml -i inventory --list --output inventory.yaml
- 223 vim inventory.yaml
- 224 cat ../windows/inventory
- 225 ansible-inventory --yaml -i ../windows/inventory --list --output winventory.yaml
- 226 vim winventory.yaml
- 227 ansible-doc -t inventory -l
- 228 sudo dnf install -y redis
- 229 sudo systemctl enable --now redis
- 230 sudo pip3 install redis
- 231 sudo dnf install python3-pip -y
- 232 sudo pip3 install redis
- 233 vim ansible.cfg
- 234 ansible all -m setup
- 235 ls
- 236 cd ..
- 237 ls
- 238 cd factcache/
- 239 ls
- 240 ./checkcache.py
- 241 vim ansible.cfg
- 242 ansible all -m setup | less
- 243 ansible-galaxy collection install community.general
- 244 ansible all -m setup | less
- 245 vim inventory
- 246 ansible all -m setup
- 247 ./checkcache.py
- 248 ansible all -m setup | less
- 249 vim checkfacts.yaml
- 250 ansible-playbook checkfacts.yaml
- 251 vim checkfacts.yaml
- 252 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement