Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RUN AS ROOT 1 free -m
- 2 lsblk
- 3 cat /etc/redhat-release
- 4 vim /etc/hosts
- 5 yum install -y vim bash-completion git
- 6 vim /etc/hosts
- 7 ping ansible1
- 8 ping ansible2
- 9 yum install -y epel-release
- 10 yum install -y ansible
- 11 history
- 12 echo "ansible ALL=(ALL) NOPASSWD: ALL"> /etc/sudoers.d/ansible
- 13 ssh ansible1 'echo "ansible ALL=(ALL) NOPASSWD: ALL"> /etc/sudoers.d/ansible'
- 14 ssh ansible2 'echo "ansible ALL=(ALL) NOPASSWD: ALL"> /etc/sudoers.d/ansible'
- RUN AS ANSIBLE ON CONTROL 1 ssh-keygen
- 2 ssh-copy-id ansible1
- 3 ssh-copy-id ansible2
- 4 history 5 ansible --version
- 6 git clone https://github.com/sandervanvugt/rhce8-live
- 7 git clone https://github.com/sandervanvugt/rhce8-book
- 8 ls
- 9 cd rhce8-live/
- 10 ls
- 11 ./countdown 12
- 12 sudo vim /etc/ansible/hosts
- 13 sudo vim /etc/ansible/ansible.cfg
- 14 ansible -i inventory all --list-hosts
- 15 ls
- 16 cd lesson2/
- 17 ls
- 18 cat inventory
- 19 ansible -i inventory all --list-hosts
- 20 ansible web --list-hosts
- 21 ansible -i inventory ungrouped --list-hosts
- 22 vim ansible.cfg
- 23 ls
- 24 ls -l
- 25 mv inventory /tmp
- 26 mkdir inventory
- 27 mv /tmp/inventory inventory/
- 28 grep inventory ansible.cfg
- 29 ansible --version
- 30 ansible all -m user -a "name=lisa"
- 31 ansible all -m command -a "id lisa"
- 32 ansible -m command -a "useradd lisa"
- 33 ansible all -m command -a "useradd lisa"
- 34 ansible all -m user -a "name=lisa"
- 35 history
- 36 ansible ansible1.example.com -m command -a "rpm -qa | grep nmap"
- 37 ansible ansible1.example.com -m shell -a "rpm -qa | grep nmap"
- 38 ansible all -m ping
- 39 ansible all -m service -a "name=httpd state=started"
- 40 ansible all -m copy -a 'content="hello world" dest=/etc/motd"
- 41 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 42 ansible all -a "cat /etc/motd"
- 43 history
- 44 ../countdown 12
- 45 vim inventory/
- 46 history
- 47 ansible all -a "cat /etc/motd"
- 48 ansible-doc -l
- 49 ansible-doc -l | wc
- 50 ansible-doc -l | grep '^ios'
- 51 ansible-doc -l | grep '^ios' | wc
- 52 ansible-doc user
- 53 ansible -u root -i inventory ansible2.example.com --ask-pass -m raw -a "yum install -y python3"
- 54 vim ~/.vimrc
- 55 cd ../lesson4/
- 56 ls
- 57 vim vsftpd.yml
- 58 vim ~/.vimrc
- 59 vim vsftpd.yml
- 60 ansible-playbook vsftpd.yml
- 61 vim vsftpd.yml
- 62 ansible-playbook vsftpd.yml
- 63 vim vsftpd.yml
- 64 ansible-playbook vsftpd.yml
- 65 vim vsftpd.yml
- 66 ansible-playbook vsftpd.yml
- 67 ansible-playbook --syantax-check vsftpd.yml
- 68 ansible-playbook vsftpd.yml --syntax-check
- 69 vim vsftpd.yml
- 70 ansible-playbook -v vsftpd.yml
- 71 ansible-playbook -vvvv vsftpd.yml
- 72 vim web-setup-and-test.yml
- 73 ansible-playbook web-setup-and-test.yml
- 74 ../countdown 12
- 75 ansible ansible1.example.com -m setup > ../lesson5/facts.txt
- 76 cd ../lesson5/
- 77 less facts.txt
- 78 ansible-doc -l | grep facts | less
- 79 ansible-doc -l | grep facts | wc
- 80 ls
- 81 vim user.yml
- 82 ansible-playbook user.yml
- 83 ansible-playbook --help
- 84 ansible-playbook user.yml -e user=anna
- 85 vim user.yml
- 86 ansible-playbook user.yml
- 87 vim user.yml
- 88 ansible-playbook user.yml
- 89 ls
- 90 history | grep git
- 91 cd webservers/
- 92 ls
- 93 cat inventory
- 94 cat ansible.cfg
- 95 ls group_vars/
- 96 cat inventory
- 97 ls
- 98 cat group_vars/lamp
- 99 vim site.yml
- 100 ansible-playbook site.yml
- 101 history
Add Comment
Please, Sign In to add comment