Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ history
- 1 free -m
- 2 lscpu
- 3 ping 192.168.29.167
- 4 ping 192.168.29.168
- 5 ip
- 6 ip a
- 7 sudo vim /etc/hosts
- 8 ping control
- 9 ping ansible1
- 10 ping ansible2
- 11 ansible-galaxy collection install ansible.windows
- 12 sudo dnf install ansible-core
- 13 ansible --version
- 14 history
- 15 vim inventory
- 16 vim inventory
- 17 ansible -i inventory all -m command "useradd ansible"
- 18 ansible -i inventory all -m command -a "useradd ansible"
- 19 ssh student@control
- 20 ssh student@ansible1
- 21 ssh student@ansible2
- 22 ansible -i inventory all -m command -a "useradd ansible" -u student -k -b -K
- 23 ansible -i inventory all -m command -a "id ansible" -u student -k -b -K
- 24 ansible -i inventory all -m command -a "useradd ansible" -u student -k -b -K
- 25 ansible -i inventory all -m user -a "name=ansible" -u student -k -b -K
- 26 history
- 27 sudo dnf install git
- 28 git clone https://github.com/sandervanvugt/ansiblefundamentals
- 29 cd ansiblefundamentals/
- 30 ls
- 31 history
- 32 sudo -i
- 33 ansible -i inventory all -u student -b -k -K -m shell -a "echo password | passwd --stdin ansible"
- 34 cd ..
- 35 ansible -i inventory all -u student -b -k -K -m shell -a "echo password | passwd --stdin ansible"
- 36 history
- 37 ansible -i inventory all -u student -b -k -K -m command -a "rpm -qa | grep bash"
- 38 ansible -i inventory all -u student -b -k -K -m shell -a "rpm -qa | grep bash"
- 39 ansible -i inventory all -u student -b -k -K -m shell -a "echo password | passwd --stdin ansible"
- 40 history
- 41 ansible -i inventory all -u ansible -k -m command -a "whoami"
- 42 ansible -i inventory all -u ansible -k -m command -a "ls -l /root"
- 43 ansible -i inventory all -u ansible -k -m command -a "ls -l /root" -b -K
- 44 ansible -i inventory all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible' -b -k -K -u student
- 45 ansible -i inventory all -u ansible -k -m command -a "ls -l /root" -b
- 46 su - ansible
- 47 history
- 48 su - ansible
- 49 history
- [ansible@localhost ansiblefundamentals]$ history
- 1 vim inventory
- 2 ssh-keygen
- 3 ssh-copy-id ansible1
- 4 ssh-copy-id ansible2
- 5 ssh ansible1
- 6 ansible -i inventory all -m command -a "ls -l /root" -b
- 7 exit
- 8 history
- 9 git clone https://github.com/sandervanvugt/ansiblefundamentals
- 10 cd ansiblefundamentals/
- 11 ls
- 12 vim ansible.cfg
- 13 cp ../inventory .
- 14 ansible all -a "ls -l /root"
- 15 ansible-doc -l | less
- 16 ansible-doc copy
- 17 ansible ansible1 -m command -a "rpm -qa | grep python"
- 18 ansible ansible1 -m shell -a "rpm -qa | grep python"
- 19 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 20 ansible all -m package -a "name=nmap state=latest"
- 21 ansible all -m service -a "name=httpd state=started enabled=yes"
- 22 ./countdown 12
- 23 vim install_and_start_httpt.yaml
- 24 ansible-playbook install_and_start_httpt.yaml
- 25 ansible-playbook install_and_start_httpt.yaml -v
- 26 ansible-playbook install_and_start_httpt.yaml -vvvvv
- 27 vim install_and_start_httpt.yaml
- 28 ansible-playbook install_and_start_httpt.yaml
- 29 ansible-playbook install_and_start_httpt.yaml --syntax-check
- 30 vim install_and_start_httpt.yaml
- 31 vim enforce-selinux
- 32 vim enforce-selinux.yml
- 33 ansible-playbook enforce-selinux.yml
- 34 ansible-galaxy collection install ansible.posix
- 35 ansible-doc -l | less
- 36 ansible-playbook enforce-selinux.yml
- 37 ansible-doc -l | less
- 38 vim enforce-selinux.yml
- 39 vim enforce-selinux-.yml
- 40 vim enforce-selinux-simplified.yml
- 41 vim run_and_test_httpd.yaml
- 42 ansible-playbook run_and_test_httpd.yaml
- 43 vim run_and_test_httpd.yaml
- 44 ansible-doc firewalld
- 45 vim run_and_test_httpd.yaml
- 46 ansible-playbook run_and_test_httpd.yaml
- 47 vim run_and_test_httpd.yaml
- 48 ansible-playbook run_and_test_httpd.yaml
- 49 vim run_and_test_httpd.yaml
- 50 vim multi_play.yaml
- 51 ansible-playbook multi_play.yaml
- 52 vim multi_play.yaml
- 53 ansible-doc yum
- 54 vim multi_play.yaml
- 55 ansible-doc service
- 56 vim multi_play.yaml
- 57 ansible-playbook multi_play.yaml
- 58 vim multi_play.yaml
- 59 vim variables_example.yaml
- 60 ansible-playbook variables_example.yaml
- 61 ansible-playbook variables_example.yaml -e user=bob
- 62 vim gather_facts.yaml
- 63 ansible-playbook gather_facts.yaml
- 64 ansible-playbook gather_facts.yaml | less
- 65 vim old_facts.yaml
- 66 vim new_facts.yaml
- 67 ansible-playbook new_facts.yaml
- 68 ansible all -m setup | less
- 69 vim old_facts.yaml
- 70 ansible-playbook old_facts.yaml
- 71 ansible-playbook new_facts.yaml
- 72 vim new_facts.yaml
- 73 ansible-playbook new_facts.yaml
- 74 vim new_facts.yaml
- 75 vim myvars.yaml
- 76 vim vars_file.yaml
- 77 ansible-playbook vars_file.yaml
- 78 ls
- 79 cd vars
- 80 ls
- 81 cd ..
- 82 mkdir host_vars
- 83 vim host_vars/ansible1
- 84 vim vars_file.yaml
- 85 ansible-playbook vars_file.yaml
- 86 vim vars_file.yaml
- 87 history
- 88 vim register.yaml
- 89 ansible-playbook register.yaml
- 90 vim register.yaml
- 91 ansible-playbook register.yaml
- 92 vim loop_packages.yaml
- 93 ansible-playbook loop_packages.yaml
- 94 vim loop_on_vars.yaml
- 95 cat vars/users-list
- 96 vim loop_on_vars.yaml
- 97 ansible-playbook loop_on_vars.yaml
- 98 vim loop_on_vars.yaml
- 99 vim when_test.yaml
- 100 ansible-playbook when_test.yaml
- 101 vim when_complex.yaml
- 102 ansible-playbook when_complex.yaml
- 103 vim when_register.yaml
- 104 ansible-playbook when_register.yaml
- 105 vim using_handlers.yaml
- 106 ansible-playbook using_handlers.yaml
- 107 vim using_handlers.yaml
- 108 ansible-playbook using_handlers.yaml
- 109 ansible all -m file -a "name=/var/www/html/index.html state=absent"
- 110 ansible-playbook using_handlers.yaml
- 111 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement