Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control webservers]$ 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
Add Comment
Please, Sign In to add comment