Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control lesson13]$ history
- 1 ssh-keygen
- 2 ssh-copy-id ansible1
- 3 ssh-copy-id ansible2
- 4 ssh ansible2
- 5 exit
- 6 sudo git install https://github.com/sandervanvugt/rhce8-live
- 7 sudo git clone https://github.com/sandervanvugt/rhce8-live
- 8 sudo git clone https://github.com/sandervanvugt/rhce8-book
- 9 cd rhce8-live/
- 10 ls
- 11 ./countdown 13
- 12 ansible --version
- 13 sudo yum install -y ansible
- 14 ansible --version
- 15 ls
- 16 history
- 17 cd lesson2/
- 18 ls
- 19 vim inventory
- 20 ansible -i inventory all --list-hosts
- 21 ansible all --list-hosts
- 22 mv inventory minventory
- 23 sudo mv inventory minventory
- 24 ansible all --list-hosts
- 25 ansible all -i minventory --list-hosts
- 26 cat ansible.cfg
- 27 sudo vim /etc/ansible/hosts
- 28 ansible file --list-hosts
- 29 ansible -i inventory file --list-hosts
- 30 ansible -i minventory file --list-hosts
- 31 cat minventory
- 32 ansible -i minventory web --list-hosts
- 33 cat minventory
- 34 vim ansible.cfg
- 35 sudo vim /etc/ansible/hosts
- 36 sudo vim /etc/ansible/ansible.cfg
- 37 ls
- 38 vim ansible.cfg
- 39 ls -l
- 40 cd ..
- 41 sudo chown -R ansible:ansible *
- 42 ls -l
- 43 cd lesson
- 44 cd lesson2/
- 45 ls
- 46 vim ansible.cfg
- 47 ansible web --list-hosts
- 48 vim ansible.cfg
- 49 ansible --version
- 50 ls
- 51 cd ..
- 52 ./countdown 12
- 53 ansible all -m user -a "name=lisa"
- 54 pwd
- 55 ls
- 56 cd lesson2/
- 57 cat ansible.cfg
- 58 ls
- 59 ansible all -m user -a "name=lisa"
- 60 ansible all -m command -a "id lisa"
- 61 ansible all -a "id lisa"
- 62 ansible-doc -l
- 63 ansible-doc -l | wc
- 64 ansible all -m command -a "useradd linda"
- 65 ansible all -m command -a "id linda"
- 66 ansible all -m command -a "useradd linda"
- 67 ansible all -m user -a "name=linda"
- 68 ansible-doc package
- 69 ansible-doc yum
- 70 ansible-doc dnf
- 71 ansible all -m ping
- 72 ansible all -m service -a "name=httpd state=started"
- 73 ansible all -m command -a "rpn -qa | grep python"
- 74 ansible all -m command -a "rpm -qa | grep python"
- 75 ansible all -m shell -a "rpm -qa | grep python"
- 76 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 77 ansible all -m command -a "cat /etc/motd"
- 78 ansible --help
- 79 historyt
- 80 history
- 81 ansible all -m copy -a 'content="hello world" dest=/etc/motd' -C
- 82 ansible all -m copy -a 'content="hello moon" dest=/etc/motd' -C
- 83 ../countdown 12
- 84 vim ~/.vimrc
- 85 cd ../lesson4
- 86 ls
- 87 vim vsftpd.yml
- 88 ansible-doc copy
- 89 vim vsftpd.yml
- 90 ansible-playbook vsftpd.yml
- 91 ls -lrt
- 92 vim vsftpd.yml
- 93 ansible-playbook vsftpd.yml
- 94 vim vsftpd.yml
- 95 ansible-playbook vsftpd.yml
- 96 ansible-playbook --syntax-check vsftpd-err.yml
- 97 vim vsftpd-err.yml
- 98 ansible-playbook -C vsftpd.yml
- 99 ansible-playbook -vvvv vsftpd.yml
- 100 ansible-playbook -vv vsftpd.yml
- 101 vim web-setup-and-test.yml
- 102 ansible-doc firewalld
- 103 vim web-setup-and-test.yml
- 104 ansible-playbook web-setup-and-test.yml
- 105 history
- 106 cd ../lesson5/
- 107 ls
- 108 pwd
- 109 vim user.yml
- 110 ansible-playbook user.yml
- 111 vim user.yml
- 112 vim user.yml -e user=frank
- 113 ansible-playbook user.yml -e user=franck
- 114 sudo vim /etc/ansible/ansible.cfg
- 115 vim user.yml
- 116 ansible-playbook user.yml -e user=anna
- 117 vim user.yml
- 118 ansible-playbook user.yml
- 119 vim user.yml
- 120 ansible-playbook user.yml -e user=anna
- 121 ssh-copy-id localhost
- 122 ansible-playbook user.yml -e user=anna
- 123 history
- 124 cd ..
- 125 ls
- 126 git clone https://github.com/sandervanvugt/ansible-advanced
- 127 cd ansible-advanced/
- 128 cd windows/
- 129 ls
- 130 vim inventory
- 131 cd ../../rhce8-live/lesson5/
- 132 ls
- 133 cd webservers/
- 134 ls
- 135 vim site.yml
- 136 cd group_vars/
- 137 ls
- 138 cat ../inventory
- 139 cat lamp
- 140 cd ..
- 141 mkdir host_vars
- 142 cd host_vars/
- 143 vim ansible1.example.com
- 144 cd ..
- 145 vim site.yml
- 146 ansible-playbook site.yml
- 147 vim site.yml
- 148 tree
- 149 ansible localhost -m yum -a "name=tree state=installed"
- 150 tree
- 151 history
- 152 pwd
- 153 ../../countdown 18
- 154 sudo vim /etc/hosts
- 155 ping ansible3
- 156 ls
- 157 vim inventory
- 158 vim jp.yaml
- 159 cp jp.yaml jp2.yaml
- 160 cp jp.yaml jp3.yaml
- 161 vim jp.yaml
- 162 ansible ansible3 -m raw -a "yum install python3 -y" --become
- 163 ansible ansible3.example.com -m raw -a "yum install python3 -y" --become
- 164 ansible ansible3.example.com -m raw -a "yum install python3 -y" -u root --ask-pass
- 165 ansible ansible3.example.com -m user -a "name=ansible state=present" -u root --ask-pass
- 166 ansible ansible3.example.com -m raw -a "echo password | passwd --stdin ansible" -u root --ask-pass
- 167 ssh-copy-id ansible3.example.com
- 168 ansible ansible3.example.com -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root --ask-pass
- 169 ansible all -m ping
- 170 history
- 171 vim newhost.sh
- 172 cat newhost.sh
- 173 ls
- 174 vim jp2.yaml
- 175 ansible-playbook jp2.yaml
- 176 vim inventory
- 177 vim jp2.yaml
- 178 ansible-playbook jp2.yaml
- 179 vim jp2.yaml
- 180 vim jp3.yaml
- 181 ansible-vault
- 182 pwd
- 183 cd ../../lesson7/
- 184 ls
- 185 cd vault/
- 186 ls
- 187 rm secret.yml
- 188 ansible-vault create secret.yml
- 189 cat secret.yml
- 190 ansible-vault view secret.yml
- 191 vim create-user.yml
- 192 ansible-playbook create-users.yml
- 193 ansible-playbook create-user.yml
- 194 ansible-playbook --ask-vault-pass create-user.yml
- 195 ansible-doc user
- 196 ansible all -a "tail /etc/shadow"
- 197 history | grep stdin
- 198 echo password > vault-pass
- 199 ansible-playbook --vault-password-file=vault-pass create-user.yml
- 200 cd ..
- 201 ../countdown 13
- 202 ansible ansible1.example.com -m setup > facts.txt
- 203 ls
- 204 cd facts/
- 205 ansible ansible1.example.com -m setup > facts.txt
- 206 less facts.txt
- 207 ls
- 208 rm *retry
- 209 ls
- 210 vim facts.yml
- 211 less facts.txt
- 212 ansible-playbook facts.yml | less
- 213 vim ipfact.yml
- 214 ansible-playbook ipfact.yml
- 215 vim ipfact.yml
- 216 ansible-playbook ipfact.yml
- 217 vim newlocalfacts.yml
- 218 vim localfacts.fact
- 219 vim newlocalfacts.yml
- 220 ansible-playbook newlocalfacts.yml
- 221 ansible ansible1.example.com -m setup -a "filter=ansible_local"
- 222 cd ..
- 223 ls
- 224 cd arrays/
- 225 ls
- 226 tree
- 227 cat vars/users-dictionary
- 228 cat vars/users-list
- 229 vim multi-list.yml
- 230 cat multi-list.yml
- 231 ansible-playbook multi-list.yml
- 232 cat vars/users-dictionary
- 233 cat multi-dictionary.yml
- 234 ansible-playbook multi-dictionary.yml
- 235 ls
- 236 cd ../../lesson8/
- 237 ls
- 238 vim loop-over-variable.yml
- 239 vim loopvars.yml
- 240 ansible-playbook loop-over-variable.yml
- 241 vim inventory
- 242 vim loopservices.yml
- 243 ansible-playbook loopservices.yml
- 244 vim loopservices.yml
- 245 vim loopusers.yml
- 246 ansible-playbook loopusers.yml
- 247 ../countdown 12
- 248 ls
- 249 vim register_loop.yml
- 250 ansible-playbook register_loop.yml
- 251 vim register_command.yml
- 252 ansible-playbook register_command.yml
- 253 vim register_command.yml
- 254 ansible-playbook register_command.yml -e user=lisa
- 255 ansible-playbook register_command.yml -e user=sander
- 256 vim register_command.yml
- 257 ansible-playbook register_command.yml -e user=sander
- 258 vim register_command.yml
- 259 vim distro.yml
- 260 ansible-playbook distro.yml
- 261 vim distro.yml
- 262 ansible-playbook distro.yml
- 263 vim quicktest.yml
- 264 history | grep git
- 265 cat distro.yml
- 266 vim quicktest.yml
- 267 ansible-playbook quicktest.yml
- 268 vim quicktest.yml
- 269 ansible-playbook quicktest.yml
- 270 vim quicktest.yml
- 271 ansible-playbook quicktest.yml
- 272 vim command-output-test.yml
- 273 vgs myvg
- 274 ansible localhost -a "vgs myvg"
- 275 ansible localhost -a "vgs"
- 276 ansible localhost -a "cl"
- 277 ansible localhost -a "vgs cl"
- 278 vim command-output-test.yml
- 279 ansible-playbook command-output-test.yml
- 280 vim command-output-test.yml
- 281 ansible-playbook command-output-test.yml
- 282 vim when_multiple.yml
- 283 ansible-playbook when_multiple.yml
- 284 vim when_multiple.yml
- 285 ansible-playbook when_multiple.yml
- 286 vim when_multiple.yml
- 287 ansible-playbook when_multiple.yml
- 288 vim when_multiple_complex.yml
- 289 ansible-playbook when_multiple_complex.yml
- 290 vim homework2.txt
- 291 history
- 292 ls
- 293 vim dm.yaml
- 294 sudo rpm -q --last kernel
- 295 vim dm.yaml
- 296 ansible -m setup ansible1.example.com | less
- 297 cd ..
- 298 mv rhce8-live/ rhce8-live.old/
- 299 ls
- 300 git clone https://github.com/sandervanvugt/rhce8-live
- 301 cd rhce8-live.old/lesson8/
- 302 vim dm.yaml
- 303 cd ~/rhce8-live/lesson8/
- 304 ls
- 305 vim handlers.yml
- 306 ansible-playbook handlers.yml
- 307 mkdir /tmp/index.html
- 308 rmdir /tmp/index.html/
- 309 touch /tmp/index.html
- 310 ansible-playbook handlers.yml
- 311 vim handlers.yml
- 312 ansible-playbook handlers.yml
- 313 ansible all -m file -a "name=/var/www/html/index.html state=absent"
- 314 ansible-playbook handlers.yml
- 315 pwd
- 316 vim ../../rhce8-live.old/lesson8/dm.yaml
- 317 vim blocks.yml
- 318 ansible-playbook blocks.yml
- 319 vim blocks2.yml
- 320 ansible-playbook blocks2.yml
- 321 vim blocks2.yml
- 322 ansible-playbook blocks2.yml
- 323 ls
- 324 cat failure.yml
- 325 cat failure2.yml
- 326 grep failed_when *
- 327 pwd
- 328 cd ../../rhce8-live.old/lesson8/
- 329 vim failure2.yml
- 330 vim failure.yml
- 331 ansible-playbook failure.yml
- 332 vim failure.yml
- 333 cp failure.yml ../../rhce8-live/lesson8/
- 334 cd ../../rhce8-live/lesson8/
- 335 vim changed.yml
- 336 ansible-playbook changed.yml
- 337 vim changed.yml
- 338 ansible-playbook changed.yml
- 339 vim failure.yml
- 340 ansible-playbook failure.yml
- 341 vim failure.yml
- 342 vim ansible.cfg
- 343 ../countdown 13
- 344 cd ../lesson9/
- 345 ls
- 346 vim file.yml
- 347 ansible-playbook file.yml
- 348 ansible -a "ls -l /tmp/remo"
- 349 ansible-playbook file.yml
- 350 vim file.yml
- 351 ansible all -a "ls -l /tmp/removeme"
- 352 vim file.yml
- 353 ansible-playbook file.yml
- 354 ansible all -a "ls -lZ /tmp/removeme"
- 355 vim file.yml
- 356 vim copy.yml
- 357 ansible-playbook copy.yml
- 358 ls /tmp
- 359 md5sum /tmp/ansible1.example.com/tmp/hosts
- 360 cat /tmp/ansible1.example.com/tmp/hosts
- 361 ansible-doc copt
- 362 ansible-doc copy
- 363 ansible-doc block-in-file
- 364 ansible-doc block-infile
- 365 vim copy.yml
- 366 ansible-doc blockinfile
- 367 vim selinux.yml
- 368 ansible-playbook selinux.yml
- 369 sudo yum provides */policycoreutils-python
- 370 sudo yum provides */semanage
- 371 vim selinux.yml
- 372 ansible-playbook selinux.yml
- 373 ls
- 374 vim templates/vsftpd.j2
- 375 vim ansible.cfg
- 376 vim vsftpd-template.yml
- 377 ansible-playbook vsftpd-template.yml
- 378 ansible all -a "cat /etc/vsftpd/vsftpd.conf"
- 379 ansible-doc blockinfile
- 380 vim ansible.cfg
- 381 vim hostsfile.yml
- 382 vim hosts.j2
- 383 vim templates/hosts.j2
- 384 ansible-playbook hostsfile.yml
- 385 ansible all -a "cat /etc/hosts"
- 386 ../countdown 12
- 387 cd ../lesson11/
- 388 ls
- 389 cd roles
- 390 ls
- 391 ansible-galaxy init myrole
- 392 tree myrole/
- 393 ls
- 394 tree mywebhost/
- 395 cd ..
- 396 ls
- 397 vim apache-vhost-role.yml
- 398 cd roles/
- 399 cd mywebhost/
- 400 vim tasks/main.yml
- 401 vim handlers/main.yml
- 402 vim templates/vhost.conf.j2
- 403 vi defaults/main.yml
- 404 rm -rf defaults/
- 405 vim meta/main.yml
- 406 rm -rf meta/
- 407 rm README.md
- 408 rm -rf tests/
- 409 vim vars/main.yml
- 410 rm -rf vars
- 411 tree
- 412 pwd
- 413 cd ../..
- 414 ls
- 415 ansible-playbook apache-vhost-role.yml
- 416 ansible-galaxy search motd
- 417 ansible-galaxy search motd
- 418 ansible-galaxy search motd --platforms EL
- 419 ansible-galaxy install arillso.motd
- 420 ansible-galaxy list
- 421 ansible-galaxy install geerlingguy.nginx
- 422 ls
- 423 cd roles/
- 424 ls
- 425 cd motd/
- 426 ls
- 427 cat README.md
- 428 ls
- 429 less meta/main.yml
- 430 vim tasks/main.yml
- 431 vim templates/motd.j2
- 432 vim defaults/main.yml
- 433 pwd
- 434 cd ..
- 435 vim motd-role.yml
- 436 ansible-playbook motd-role.yml -e system_manager=bob
- 437 ansible -a "cat /etc/motd"
- 438 ansible all -a "cat /etc/motd"
- 439 ansible all -a "cat /etc/motd"Z
- 440 cd ~/.ansible/roles/
- 441 cd arillso.motd/
- 442 ls
- 443 vim tasks/main.yml
- 444 cd ..
- 445 cd geerlingguy.nginx/
- 446 ls
- 447 cd tasks/
- 448 vim main.yml
- 449 ls
- 450 tree
- 451 cd ..
- 452 tree
- 453 vim vars/RedHat.yml
- 454 vim defaults/main.yml
- 455 cd
- 456 cd rhce8-live
- 457 ./countdown 12
- 458 sudo yum install rhel-system-roles
- 459 cd /usr/share/doc/rhel-system-roles/
- 460 ls
- 461 cd selinux/
- 462 ls
- 463 vim example-selinux-playbook.yml
- 464 pwd
- 465 cd ../timesync/
- 466 ls
- 467 vim example-timesync-playbook.yml
- 468 tzselect
- 469 pwd
- 470 cd ~/rhce8-live/
- 471 ls
- 472 cd lesson12/
- 473 ls
- 474 vim setuptime-light.yml
- 475 vim group_vars/servers/timesync.yml
- 476 vim inventory
- 477 vim setuptime-light.yml
- 478 ansible-playbook setuptime-light.yml
- 479 vim inventory
- 480 ansible-playbook setuptime-light.yml
- 481 ansible-inventory --list
- 482 cd ../lesson13/
- 483 ls
- 484 vim pascal.py
- 485 ansible-inventory -i pascal.py --graph
- 486 ls
- 487 vim imports.yaml
- 488 ansible-playbook --list-tasks imports.yaml
- 489 vim imports.yaml
- 490 vim tasks/service.yaml
- 491 vim tasks/firewall.yaml
- 492 vim imports.yaml
- 493 vim includes.yml
- 494 ls
- 495 history
Add Comment
Please, Sign In to add comment