Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control lesson8]$ history
- 1 userdel -f ansilbe
- 2 sudo userdel -f ansilbe
- 3 sudo yum install -y git vim bash-completion
- 4 git clone https://github.com/sandervanvugt/rhce8-live
- 5 git clone https://github.com/sandervanvugt/rhce8-book
- 6 git clone https://github.com/sandervanvugt/rhce8
- 7 cd rhce8
- 8 ls
- 9 cd ..
- 10 history
- 11 ip a
- 12 sudo vim /etc/hosts
- 13 ping control
- 14 ping ansible1
- 15 ping ansible2
- 16 sudo yum install -y epel-release
- 17 sudo yum install -y ansible
- 18 ansible --version
- 19 id
- 20 sudo visudo
- 21 ssh ansible1
- 22 ssh root@ansible1
- 23 ssh root@ansible2
- 24 sudo vim /etc/hosts
- 25 rm .ssh/known_hosts
- 26 ssh-keygen
- 27 ssh-copy-id ansible1
- 28 ssh-copy-id ansible2
- 29 ssh ansible1 ls /root
- 30 ssh ansible1
- 31 ssh ansible2
- 32 history
- 33 cd rhce8-live/
- 34 ls
- 35 ./countdown 12
- 36 vim /etc/ansible/hosts
- 37 ls
- 38 cd lesson2/
- 39 ls
- 40 cat inventory
- 41 cd ..
- 42 git clone https://github.com/sandervanvugt/ansible-advanced
- 43 cd ansible-advanced/
- 44 ls
- 45 cat advanced/inventory
- 46 cat windows/inventory
- 47 cd ..
- 48 cd rhce8-live/
- 49 cd lesson2/
- 50 ls ..
- 51 vim inventory
- 52 vim ansible.cfg
- 53 ls
- 54 ansible -i inventory all --list-hosts
- 55 ansible file --list-hosts
- 56 cat ansible.cfg
- 57 ansible all --list-hosts
- 58 cat inventory
- 59 ansible web --list-hosts
- 60 ../countdown 4
- 61 history | grep git
- 62 pwd
- 63 vim ansible.cfg
- 64 vim /etc/ansible/ansible.cfg
- 65 ansible --version
- 66 ansible -u root -k -i inventory all -a 'id'
- 67 ansible localhost -m command -a "useradd bob"
- 68 id
- 69 ../countdown 15
- 70 ansible all -m command -a "useradd bob"
- 71 ansible all -m user -a "name=bob"
- 72 ansible all -a "id bob"
- 73 ansible all -a "rpm -qa | grep nmap"
- 74 ansible all -m shell -a "rpm -qa | grep nmap"
- 75 ansible-doc yum
- 76 ansible all -m yum -a "name=nmap"
- 77 history | tail -5
- 78 ansible all -m ping
- 79 ansible all -u root -k -m raw -a "yum install python"
- 80 #ansible all -u root -k -m raw -a "yum install python"
- 81 ansible all -m service -a "name=httpd state=started"
- 82 ansible all -m service -a "name=sshd state=started"
- 83 ansible all -m copy -a 'content=hello world dest=/etc/motd'
- 84 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 85 ansible-doc -l
- 86 ansible-doc -l | wc
- 87 ansible-doc | grep windows
- 88 ansible-doc -l | grep windows
- 89 ansible-doc -l | grep win
- 90 ansible-doc -l
- 91 ansible-doc consul_session
- 92 less /usr/lib/python3.6/site-packages/ansible/modules/clustering/consul_session.py
- 93 ../countdown 3
- 94 cd ..
- 95 ls
- 96 cd lesson4/
- 97 ls
- 98 vim vsftpd.yml
- 99 ansible-doc yum
- 100 ansible-doc service
- 101 vim vsftpd.yml
- 102 ansible-playbook vsftpd.yml
- 103 ../countdown 12
- 104 vim vsftpd.yml
- 105 ansible-playbook vsftpd.yml
- 106 vim vsftpd.yml
- 107 vim ~/.vimrc
- 108 vim nidempotent.yaml
- 109 ansible-doc copy
- 110 ansible-playbook nidempotent.yaml
- 111 cat nidempotent.yaml
- 112 ansible all -m file -a "path=random.txt state=absent"
- 113 ansible all -m file -a "path=/home/linda/random.txt state=absent"
- 114 cat nidempotent.yaml
- 115 ansible-playbook nidempotent.yaml
- 116 vim nidempotent.yaml
- 117 ansible-playbook nidempotent.yaml
- 118 ansible-playbook -vvvv nidempotent.yaml
- 119 lls
- 120 ls
- 121 vim web-setup-and-test.yml
- 122 ansible-playbook web-setup-and-test.yml
- 123 vim nidempotent.yaml
- 124 history
- 125 ../countdown 3
- 126 ls
- 127 vim uninstall-httpd.yml
- 128 vim 123.yaml
- 129 ansible-playbook 123.yaml
- 130 cd ../lesson5/
- 131 ls
- 132 vim user.yml
- 133 ansible-playbook user.yml
- 134 ansible-playbook --help | less
- 135 ansible-playbook user.yml -e user=linda
- 136 vim user.yml
- 137 mkdir vars
- 138 vim vars/users.yaml
- 139 ansible-playbook user.yml
- 140 vim user.yml
- 141 ansible-playbook user.yml
- 142 vim vars/users.yaml
- 143 ansible-playbook user.yml
- 144 vim user.yml
- 145 ansible-playbook user.yml
- 146 vim user.yml
- 147 ansible-playbook user.yml
- 148 vim user.yml
- 149 vim vars/users.yaml
- 150 ansible-doc user
- 151 vim vars/users.yaml
- 152 vim user.yml
- 153 ansible-playbook user.yml
- 154 vim user.yml
- 155 ansible-playbook user.yml
- 156 vim user.yml
- 157 ls
- 158 vim inventory
- 159 cd webservers/
- 160 ls
- 161 vim inventory
- 162 vim group_vars/lamp
- 163 vim site.yml
- 164 ansible-playbook site.yml
- 165 vim site.yml
- 166 cat inventory
- 167 mkdir host_vars
- 168 cat site.yml
- 169 vim hosts_vars/ansible1.example.com
- 170 ls -ld .
- 171 vim host_vars/ansible1.example.com
- 172 ansible-playbook site.yml
- 173 vim site.yml
- 174 ansible-playbook site.yml
- 175 vim site.yml
- 176 ansible-playbook site.yml
- 177 vim site.yml
- 178 ansible-playbook site.yml
- 179 vim site.yml
- 180 ansible-playbook site.yml
- 181 cd ..
- 182 ls
- 183 cd ..
- 184 cd lesson6
- 185 cd lesson4/
- 186 ls
- 187 vim web-setup-and-test.yml
- 188 ansible-vault --help
- 189 cd ../lesson7/
- 190 ls
- 191 cd vault/
- 192 ;s
- 193 ls
- 194 ansible-vault create secret.yml
- 195 cat secret.yml
- 196 vim create-user.yml
- 197 ansible-playbook create-user.yml
- 198 ansible-playbook --ask-vault-pass create-user.yml
- 199 ansible all -a "tail -1 /etc/passwd"
- 200 ansible all -a "tail -5 /etc/passwd"
- 201 ansible all -a "tail -5 /etc/shadow"
- 202 history
- 203 echo password > vault-pass
- 204 ansible-playbook --vault-password-file=vault-pass create-user.yml
- 205 mkdir test
- 206 echo one > test/one
- 207 echo two > test/two
- 208 ansible-vault -h
- 209 ansible-vault create test/
- 210 ansible-vault encrypt test/
- 211 history
- 212 ansible all -m setup
- 213 ansible all -m setup > ../facts.txt
- 214 cd ..
- 215 less facts.txt
- 216 ansible-doc -l | grep fact
- 217 ansible-doc -l | grep fact | grep pack
- 218 ls
- 219 cd facts/
- 220 ls
- 221 vim facts.yml
- 222 vim ipfact.yml
- 223 ansible-playbook ipfact.yml
- 224 vim ipfact.yml
- 225 pwd
- 226 history | grep git
- 227 vim ipfact.yml
- 228 less ../facts.txt
- 229 vim ipfact.yml
- 230 pwd
- 231 ../../countdown 12
- 232 history
- 233 ansible-doc copy
- 234 vim ipfact.yml
- 235 ansible-playbook ipfact.yml
- 236 vim ipfact.yml
- 237 la
- 238 ls
- 239 vim newlocalfacts.yml
- 240 vim localfacts.fact
- 241 vim newlocalfacts.yml
- 242 ansible-playbook newlocalfacts.yml
- 243 ansible lamp -m setup -a "filter=ansible_local"
- 244 vim newlocalfacts.yml
- 245 ansible-playbook newlocalfacts.yml
- 246 vim newlocalfacts.yml
- 247 ansible-playbook newlocalfacts.yml
- 248 vim newlocalfacts.yml
- 249 pwd
- 250 ../../countdown 5
- 251 ls
- 252 cp localfacts.yml
- 253 cp localfacts.yml ansible1.yml
- 254 cp localfacts.yml ansible2.yml
- 255 vim ansible1.yml
- 256 cp localfact.yml ansible2.yml
- 257 cp localfacts.fact ansible1.fact
- 258 cp localfacts.fact ansible2.fact
- 259 vim ansible1.fact
- 260 vim ansible2.fact
- 261 cp newlocalfacts.yml lab4.yml
- 262 vim lab4.yml
- 263 ansible-playbook lab4.yml
- 264 vim lab4.yml
- 265 ansible-playbook lab4.yml
- 266 ansible all -m setup -a "filter=ansible_local"
- 267 vim wa.yaml
- 268 vim myfact.fact
- 269 ansible-playbook wa.yaml
- 270 vim myfact.fact
- 271 vim wa.yaml
- 272 vim myfact.fact
- 273 ansible-playbook wa.yaml
- 274 vim wa.yaml
- 275 ansible all -m command -a "ls /etc/ansible/facts.d"
- 276 vim wa.yaml
- 277 cat myfact.fact
- 278 ansible all -m setup -a "filter=ansible_local"
- 279 ls *fact
- 280 for i in *; do echo $i; cat $i; done
- 281 for i in *fact; do echo $i; cat $i; done
- 282 vim ansible1.fact
- 283 vim ansible2.fact
- 284 ls -lrt
- 285 vim lab4.yml
- 286 ansible-playbook lab4.yml
- 287 ansible all -m setup -a "filter=ansible_local"
- 288 ansible-playbook lab4.yml
- 289 vim lab4.yml
- 290 history
- 291 pwd
- 292 ../../countdown 12
- 293 ls
- 294 vim ansible.cfg
- 295 cd ../..
- 296 cd lesson4/
- 297 ls
- 298 vim remoteuser.yaml
- 299 ansible-playbook remoteuser.yaml
- 300 ansible-playbook remoteuser.yaml -k
- 301 cat remoteuser.yaml
- 302 vim remoteuser.yaml
- 303 ansible-playbook remoteuser.yaml -k
- 304 cd ../lesson7/
- 305 l;s
- 306 ls
- 307 cd arrays/
- 308 ls
- 309 vim vars/users-dictionary
- 310 vim vars/users-list
- 311 vim multi-list.yml
- 312 vim vars/users-list
- 313 vim multi-list.yml
- 314 ansible-playbook multi-list.yml
- 315 vim multi-list.yml
- 316 vim multi-dictionary.yml
- 317 ansible-playbook multi-dictionary.yml
- 318 cd ..
- 319 cd ../lesson8/
- 320 ls
- 321 vim loopservices.yml
- 322 ansible-playbook loopservices.yml
- 323 vim loopusers.yml
- 324 ansible-playbook loopusers.yml
- 325 vim loop-over-variable.yml
- 326 cat loopvars.yml
- 327 ansible-playbook loopvars.yml
- 328 ansible-playbook loop-over-variable.yml
- 329 vim register_loop.yml
- 330 ansible-playbook register_loop.yml
- 331 vim register_loop.yml
- 332 vim register_command.yml
- 333 ansible-playbook register_command.yml
- 334 vim register_command.yml
- 335 ../countdown 12
- 336 ls
- 337 vim distro.yml
- 338 ansible-playbook distro.yml
- 339 vim distro.yml
- 340 ansible-playbook distro.yml
- 341 ansible-playbook distro.yml -e mypackage=nmap
- 342 vim quicktest.yml
- 343 ansible-playbook quicktest.yml
- 344 vim quicktest.yml
- 345 ansible-playbook quicktest.yml
- 346 vim quicktest.yml
- 347 ansible-playbook quicktest.yml
- 348 vim command-output-test.yml
- 349 vgs
- 350 sudo vgs
- 351 vim command-output-test.yml
- 352 ansible-playbook command-output-test.yml
- 353 ansible ansible1.example.com -a "vgs"
- 354 vim command-output-test.yml
- 355 ansible ansible1.example.com -a "vgs"
- 356 vim command-output-test.yml
- 357 ansible-playbook command-output-test.yml
- 358 ls
- 359 vim when_multiple.yml
- 360 ansible-playbook when_multiple
- 361 ansible-playbook when_multiple.yml
- 362 ansible-playbook when_multiple
- 363 vim when_multiple.yml
- 364 ansible-playbook when_multiple.yml
- 365 vim when_multiple_complex.yml
- 366 ansible-playbook when_multiple_complex.yml
- 367 vim ifsize.yml
- 368 ansible-playbook ifsize.yml
- 369 ansible-playbook ifsize.yml -e package=nmap
- 370 vim restart.yml
- 371 ansible-playbook restart.yml
- 372 ls
- 373 cd ..
- 374 find . -name with_size.yaml
- 375 find . -name with_size.yml
- 376 cd ..
- 377 find . -name with_size.yml
- 378 ls
- 379 cd rhce8-live/lesson8/
- 380 cat ifsize.yml
- 381 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement