Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control lesson4]$ history
- 1 sudo dnf repolist
- 2 sudo -i
- 3 ssh root@ansible1
- 4 ssh root@ansible2
- 5 sudo dnf repolist
- 6 sudo dnf search ansible
- 7 sudo dnf install -y ansible-core
- 8 vim inventory
- 9 ansible -i inventory all -m command -a "useradd ansible"
- 10 ansible -i inventory all -m command -a "useradd ansible" -u root -k
- 11 history
- 12 ansible -i inventory all -m shell -a "echo password | passwd --stdin ansible" -u root -k
- 13 ssh ansible1
- 14 ansible-doc copy
- 15 ansible-doc copyhistory
- 16 history
- 17 ansible -i inventory all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 18 ansible -i inventory all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible' -u root -k
- 19 ansible -i inventory all -m command -a "ls -l /root" -k
- 20 ls -l /root
- 21 sudo ls -l /root
- 22 ansible -i inventory all -m command -a "ls -l /root" -k -b
- 23 history
- 24 ssh-keygen
- 25 ssh-copy-id ansible1
- 26 ssh-copy-id ansible2
- 27 ssh ansible1
- 28 ansible -i inventory all -m command -a "ls -l /root" -b
- 29 history
- 30 ansible version
- 31 ansible --version
- 32 sudo vim /etc/ansible/hosts
- 33 ansible -i inventory all --list-hosts
- 34 ansible file --list-hosts
- 35 ansible file --list-hosts -i inventory
- 36 vim inventory
- 37 ansible file --list-hosts -i inventory
- 38 vim inventory
- 39 ansible file --list-hosts -i inventory
- 40 ansible all --list-hosts -i inventory
- 41 vim inventory
- 42 ls
- 43 cd rhce8-live/
- 44 ./countdown 5
- 45 sudo vim /etc/ansible/ansible.cfg
- 46 ansible-config init --disabled > ~/ansible.cfg
- 47 vim ~/ansible.cfg
- 48 ls
- 49 cd lesson2/
- 50 ls
- 51 vim inventory
- 52 vim ansible.cfg
- 53 ansible --version
- 54 ../countdown 12
- 55 ansible-doc -l | less
- 56 ansible all -m command -a "rpm -qa | grep bash"
- 57 ansible all -m shell -a "rpm -qa | grep bash"
- 58 vim inventory
- 59 ansible ansible1 -m user -a "name=linda"
- 60 ansible ansible2 -m command -a "useradd linda"
- 61 ansible ansible2 -m user -a "name=linda"
- 62 ansible-doc user
- 63 ansible ansible2 -m user -a "name=linda state=absent"
- 64 ansible-doc -l | wc
- 65 ansible-doc -l
- 66 ansible-galaxy collection install azure.azcollection
- 67 ansible-doc -l | wc
- 68 ansible-doc -l
- 69 history
- 70 ansible-doc -l
- 71 ansible all -m package -a "name=nmap state=latest"
- 72 ansible all -m shell -a "rpm -qa | grep nmap"
- 73 ansible all -m shell -a "which nmap"
- 74 ../countdown 12
- 75 cd ../lesson4/
- 76 ls
- 77 vim test.yaml
- 78 ansible-playbook test.yaml
- 79 ansible ansible2 -a "cat /etc/sudoers.d/ansible"
- 80 vim inventory
- 81 ansible ansible2 -a "cat /etc/sudoers.d/ansible"
- 82 sudo vim /etc/sudoers.d/ansible
- 83 ansible-playbook test.yaml
- 84 sudo vim /etc/sudoers.d/ansible
- 85 vim test.yaml
- 86 ansible all -m copy -a "src=/etc/hosts dest=/etc/hosts"
- 87 ansible-playbook test.yaml
- 88 vim test.yaml
- 89 ansible-playbook test.yaml
- 90 history
- 91 cat test.yaml
- 92 vim vsftpd.yml
- 93 ansible-playbook vsftpd.yml
- 94 vim vsftpd.yml
- 95 ansible-doc service
- 96 vim vsftpd.yml
- 97 ansible all -m command -a "systemctl status vsftpd"
- 98 ansible-playbook vsftpd.yml
- 99 ansible all -m command -a "systemctl status vsftpd"
- 100 ls
- 101 vim uninstall-httpd.yml
- 102 ansible-doc yum
- 103 ansible-playbook --syntax-check vsftpd-err.yml
- 104 vim vsftpd-err.yml
- 105 ansible-playbook --syntax-check vsftpd-err.yml
- 106 vim vsftpd-err.yml
- 107 ansible-playbook --syntax-check vsftpd-err.yml
- 108 ansible-playbook vsftpd-err.yml
- 109 vim vsftpd-err.yml
- 110 ansible-playbook vsftpd-err.yml
- 111 ansible-playbook --syntax-check vsftpd-err.yml
- 112 ansible-playbook --check vsftpd-err.yml
- 113 ansible-playbook -v vsftpd.yml
- 114 ansible-playbook -vvvv vsftpd.yml
- 115 sudo yum install epel-release
- 116 sudo yum search epel
- 117 ../countdown 4
- 118 vim
- 119 ls
- 120 vim uninstall-httpd.yml
- 121 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement