Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@control ~]# history
- 1 cat /etc/hosts
- 2 ping control
- 3 ping ansible1
- 4 ping ansible2
- 5 cat /etc/os-release
- 6 dnf install ansible-core
- 7 id ansible
- 8 #useradd ansible
- 9 #passwd ansible
- 10 cat /etc/hosts
- 11 ansible --version
- 12 systemctl status sshd
- 13 ssh root@localhost
- 14 ssh root@ansible1
- 15 ssh root@ansible2
- 16 vim /etc/ssh/sshd_config
- 17 systemctl restart sshd
- 18 rpm -qa | grep python
- 19 firewall-cmd --list-all
- 20 vim inventory
- 21 ansible -i inventory all -u root -k -m command -a "useradd ansible"
- 22 ansible -i inventory all -u root -k -m command -a "id ansible"
- 23 ansible -i inventory all -u root -k -m shell -a "echo password | passwd --stdin ansible"
- 24 ssh ansible@ansible1
- 25 ansible -i inventory all -u ansible -k -m command -a "whoami"
- 26 ansible -i inventory all -u ansible -k -m command -a "ls -l /root"
- 27 ansible -i inventory all -u root -k -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 28 ansible -i inventory all -u ansible -k -m command -a "ls -l /root"
- 29 ansible -i inventory all -u ansible -k -b -m command -a "ls -l /root"
- 30 exit
- 31 history
- 32 exit
- 33 history
- [root@control ~]# exit
- logout
- [ansible@control ansiblefundamentals]$ history
- 1 sudo -i
- 2 vim inventory
- 3 ssh-keygen
- 4 ssh-copy-id ansible1
- 5 ssh-copy-id ansible2
- 6 ansible -i inventory all -u ansible -b -m command "ls /root"
- 7 ansible -i inventory all -u ansible -b -m command -a "ls /root"
- 8 sudo history
- 9 sudo -i history
- 10 sudo -i
- 11 history -n 3
- 12 cd ansiblefundamentals/
- 13 ls
- 14 vim ansible.cfg
- 15 vim inventory
- 16 ansible all -a "whoami"
- 17 ansible-doc -l
- 18 ansible-doc -l | wc
- 19 ansible-galaxy collection install ansible.windows
- 20 ansible-doc -l | wc
- 21 ansible-doc -l
- 22 ansible all -m user -a "name=lisa"
- 23 ansible all -m package -a "name=nmap"
- 24 ansible-doc package
- 25 less /usr/lib/python3.9/site-packages/ansible/modules/package.py
- 26 ansible all -m ping
- 27 ansible all -m user -a "name=lisa"
- 28 ansible all -m command -a "id lisa"
- 29 ansible all -m user -a "name=lisa state=absent"
- 30 ansible all -m copy -a "src=/etc/hosts dest=/etc/hosts"
- 31 ansible ansible1 -m command -a "rpm -qa | grep python"
- 32 ansible ansible1 -m shell -a "rpm -qa | grep python"
- 33 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 34 ansible all -m command -a "cat /etc/motd"
- 35 ansible all -m package -a "name=vsftpd state=latest"
- 36 ansible all -m service -a "name=httpd state=enabled"
- 37 ansible all -m service -a "name=httpd state=started enabled=yes"
- 38 ansible-doc service
- 39 ansible ansible1 -m command -a "useradd jason"
- 40 ansible ansible1 -m user -a "name=jason"
- 41 vim install_and_start_httpt.yaml
- 42 ansible-playbook install_and_start_httpt.yaml
- 43 ./countdown 12
- 44 vim run_and_test_httpd.yaml
- 45 ansible-playbook run_and_test_httpd.yaml
- 46 sudo ls /root
- 47 vim run_and_test_httpd.yaml
- 48 ansible-playbook run_and_test_httpd.yaml
- 49 ansible ansible1 -a "firewall-cmd --list-all"
- 50 vim multi_play.yaml
- 51 ansible-playbook multi_play.yaml
- 52 ansible-doc yum
- 53 vim multi_play.yaml
- 54 ansible-playbook multi_play.yaml
- 55 sudo dnf search ansible
- 56 ansible-doc -l | grep fire
- 57 sudo dnf install ansible-collection-redhat-rhel_mgmt
- 58 ansible-doc -l | wc
- 59 ansible-doc -l | grep fire
- 60 ansible-galaxy collection install ansible.posix
- 61 ansible --version
- 62 ansible-doc -l | grep fire
- 63 vim multi_play.yaml
- 64 ansible-playbook multi_play.yaml
- 65 vim multi_play.yaml
- 66 ansible-playbook playbook_with_errors.yaml
- 67 vim playbook_with_errors.yaml
- 68 vim variables_example.yaml
- 69 ansible-playbook variables_example.yaml
- 70 vim variables_example.yaml
- 71 ansible-playbook variables_example.yaml
- 72 ansible-playbook variables_example.yaml -e "name=bob"
- 73 vim variables_example.yaml
- 74 ansible-playbook variables_example.yaml -e "user=bob"
- 75 vim gather_facts.yaml
- 76 ansible-playbook gather_facts.yaml
- 77 ansible ansible1 -m setup | less
- 78 vim old_facts.yaml
- 79 ansible-playbook old_facts.yaml
- 80 vim new_facts.yaml
- 81 ansible-playbook new_facts.yaml
- 82 vim new_facts.yaml
- 83 ansible-playbook new_facts.yaml
- 84 cat new_facts.yaml
- 85 ./countdown 12
- 86 vim myvars.yaml
- 87 vim vars_file.yaml
- 88 ansible-playbook vars_file.yaml
- 89 vim vars_file.yaml
- 90 ansible-playbook vars_file.yaml
- 91 vim register.yaml
- 92 ansible-playbook register.yaml
- 93 vim register.yaml
- 94 ansible-playbook register.yaml
- 95 vim loop_packages.yaml
- 96 ansible-playbook loop_packages.yaml
- 97 vim loop_packages.yaml
- 98 vim loop_on_vars.yaml
- 99 cat vars/users-list
- 100 cat loop_on_vars.yaml
- 101 ansible-playbook loop_on_vars.yaml
- 102 vim when_test.yaml
- 103 ansible-playbook when_test.yaml
- 104 vim when_test.yaml
- 105 vim when_complex.yaml
- 106 ansible-playbook when_complex.yaml
- 107 vim when_complex.yaml
- 108 ansible-playbook when_complex.yaml
- 109 vim when_register.yaml
- 110 ansible-playbook when_register.yaml
- 111 vim using_handlers.yaml
- 112 ansible-playbook using_handlers.yaml
- 113 vim using_handlers.yaml
- 114 ansible-playbook using_handlers.yaml
- 115 vim using_handlers.yaml
- 116 ansible-playbook using_handlers.yaml
- 117 ansible ansible2 -m file -a "path=/var/www/html/index.html state=absent"
- 118 ansible-playbook using_handlers.yaml
- 119 sudo -i
- 120 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement