Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control lesson8]$ history
- 1 sudo vim /etc/hosts
- 2 ping ansible1
- 3 ping ansible2
- 4 cat /etc/hosts
- 5 sudo yum install -y epel-release
- 6 sudo yum install -y ansible
- 7 sudo ls -l /root
- 8 sudo -i
- 9 ssh-keygen
- 10 ssh-copy-id ansible1
- 11 ssh-copy-id ansible2
- 12 history
- 13 ssh ansible1 ls -l /root
- 14 ssh ansible1 sudo ls -l /root
- 15 ssh ansible2 sudo ls -l /root
- 16 ansible --version
- 17 sudo yum install -y git
- 18 git clone https://github.com/sandervanvugt/rhce8-live
- 19 git clone https://github.com/sandervanvugt/rhce8-book
- 20 cd rhce8-live/
- 21 ls
- 22 ./countdown 12
- 23 vim /etc/ansible/hosts
- 24 cd lesson2/
- 25 ls
- 26 vim inventory
- 27 vim ansible.cfg
- 28 ansible -i inventory all --list-hosts
- 29 ansible -i inventory -m ping
- 30 ansible -i inventory all -m ping
- 31 ansible file --list-hosts
- 32 cat inventory
- 33 ansible db --list-hosts
- 34 ../countdown 4
- 35 cd ../..
- 36 history | grep git
- 37 cd rhce8-book/
- 38 ls
- 39 vim /etc/ansible/ansible.cfg
- 40 ansible --version
- 41 cd ../rhce8-live/
- 42 ansible --help
- 43 cd lesson2/
- 44 vim ansible.cfg
- 45 cd
- 46 ansible all -m ping
- 47 ls
- 48 ansible localhost -m ping
- 49 cd rhce8-live/
- 50 ls
- 51 cd lesson2/
- 52 ansible ansible2 -m command -a "useradd lisa"
- 53 ansible ansible1 -m user -a "name=linda"
- 54 history
- 55 ../countdown 12
- 56 ansible-doc -l | wc
- 57 ansible-doc -l
- 58 ansible-doc user
- 59 ansible all -m ping
- 60 ansible all -m yum -a "name=httpd state=latest"
- 61 ansible all -m yum -a "name=httpd state=absent"
- 62 ansible all -m service -a "name=httpd state=started"
- 63 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 64 ansible all -m command -a "id lisa"
- 65 ansible all -m command -a "rpm -qa | grep nmap"
- 66 ansible all -m shell -a "rpm -qa | grep nmap"
- 67 ansible all -m raw -a "rpm -qa | grep nmap"
- 68 ansible-doc -s user
- 69 ../countdown 5
- 70 ansible -m package -a "name=nmap" all
- 71 ansible all -m command -a "which nmap"
- 72 cd ../lesson4/
- 73 ls
- 74 vim vsftpd.yml
- 75 ansible-playbook vsftpd.yml
- 76 vim vsftpd.yml
- 77 ansible-playbook vsftpd.yml
- 78 history
- 79 ../countdown 12
- 80 history | grep git
- 81 ansible-playbook vsftpd.yml
- 82 cp vsftpd.yml vsftpd2.yml
- 83 vim vsftpd2.yml
- 84 ansible-doc -m command
- 85 ansible-doc command
- 86 ansible-playbook vsftpd2.yml
- 87 vim vsftpd2.yml
- 88 ansible-playbook vsftpd2.yml
- 89 ansible-playbook -vvvv vsftpd2.yml
- 90 sudo yum provides */ansible-lint
- 91 sudo pip3 install ansible-lint
- 92 ansible-lint vsftpd.yml
- 93 ansible-lint vsftpd2.yml
- 94 ../countdown 3
- 95 vim mo.yaml
- 96 ansible-playbook mo.yaml
- 97 cat mo.yaml
- 98 cd ../lesson5/
- 99 ls
- 100 vim user.yml
- 101 ansible-playbook user.yml
- 102 ansible-playbook user.yml -e user=anna
- 103 vim user.yml
- 104 ansible-playbook user.yml
- 105 ansible-playbook user.yml -e user=bob
- 106 git clone https://github.com/sandervanvugt/ansible-advanced
- 107 ls
- 108 mv ansible-advanced/ ../../
- 109 cd ../../
- 110 ls
- 111 cd ansible-advanced/
- 112 ls
- 113 cd windows/
- 114 vim inventory
- 115 cd -
- 116 cd ../rhce8-live/lesson5/
- 117 ls
- 118 cd webservers/
- 119 ls
- 120 pwd
- 121 cat inventory
- 122 ls
- 123 cat group_vars/lamp
- 124 cd ..
- 125 cd webservers/
- 126 ls
- 127 vim site.yml
- 128 ansible-playbook site.yml
- 129 cd ..
- 130 vim piotr.yaml
- 131 ansible-playbook piotr.yaml
- 132 ansible ansible2.example.com -a "firewall-cmd --list-all"
- 133 ansible ansible2.example.com -a "firewall-cmd --list-all --permanent"
- 134 vim piotr.yaml
- 135 ls
- 136 ls -lrt
- 137 curl ansible2.example.com
- 138 mv whatstate whatstate.yaml
- 139 vim whatstate.yaml
- 140 ansible-playbook whatstate.yaml
- 141 ansible ansible2.example.com -a "firewall-cmd --list-all --permanent"
- 142 ansible ansible2.example.com -a "firewall-cmd --list-all"
- 143 ansible-vault --help
- 144 cd ../lesson7/
- 145 ls
- 146 cd vault/
- 147 ls
- 148 ansible-vault create secret.yml
- 149 vim create-user.yml
- 150 ansible-playbook create-user.yml
- 151 ansible-playbook --ask-vault-pass create-user.yml
- 152 ansible ansible2.example.com -a "tail -1 /etc/shadow"
- 153 echo password > vault-pass
- 154 ansible-playbook --vault-password-file=vault-pass create-user.yml
- 155 history
- 156 history | grep git
- 157 ansible ansible1.example.com -m setup > facts.txt
- 158 less facts.txt
- 159 cd ..
- 160 ls
- 161 cd facts/
- 162 ls
- 163 vim facts.yml
- 164 ansible-playbook facts.yml
- 165 l
- 166 ls
- 167 vim ipfact.yml
- 168 ansible-playbook ipfact.yml
- 169 vim ipfact.yml
- 170 ansible-playbook ipfact.yml
- 171 cat ipfact.yml
- 172 ls
- 173 vim newlocalfacts.yml
- 174 vim localfacts.fact
- 175 vim newlocalfacts.yml
- 176 ansible-playbook newlocalfacts.yml
- 177 ansible ansible1.example.com -m setup -a "filter=ansible_local"
- 178 vim pk.yaml
- 179 ansible-playbook pk.yaml
- 180 vim pk.yaml
- 181 pwd
- 182 cd ../../lesson5
- 183 ls
- 184 vim user.yml
- 185 ansible-playbook user.yml
- 186 vim user.yml
- 187 ansible-playbook user.yml -e user=boris
- 188 ../countdown 12
- 189 ls
- 190 cd ../lesson7/
- 191 ls
- 192 cd arrays/
- 193 ls
- 194 cd vars/
- 195 ls
- 196 cat users-dictionary
- 197 cd ..
- 198 ls
- 199 vim multi-dictionary.yml
- 200 ansible-playbook multi-dictionary.yml
- 201 ls
- 202 vim vars/users-list
- 203 vim multi-list.yml
- 204 vim vars/users-list
- 205 vim multi-list.yml
- 206 ansible-playbook multi-list.yml
- 207 vim vars/users-list
- 208 vim multi-list.yml
- 209 cd ..
- 210 cd ../lesson8/
- 211 ls
- 212 vim loopusers.yml
- 213 ansible-playbook loopusers.yml
- 214 vim loopusers.yml
- 215 vim loopservices.yml
- 216 ansible-playbook loopservices.yml
- 217 ls
- 218 vim loop-over-variable.yml
- 219 cat loopvars.yml
- 220 ansible-playbook loop-over-variable.yml
- 221 vim loop-over-variable.yml
- 222 ls
- 223 vim loopservices.yml
- 224 vim register_loop.yml
- 225 ansible-playbook register_loop.yml
- 226 vim register_command.yml
- 227 ansible register_command.yml
- 228 ansible-playbook register_command.yml
- 229 vim register_command.yml
- 230 ansible-playbook register_command.yml
- 231 ../countdown 12
- 232 vim register_command.yml
- 233 vim distro.yml
- 234 ls
- 235 ansible-playbook distro.yml -e my_package=nmap
- 236 ansible-playbook distro.yml -e mypackage=nmap
- 237 vim distro.yml
- 238 ansible-playbook distro.yml -e mypackage=nmap
- 239 vim distro.yml
- 240 ansible-playbook distro.yml -e mypackage=nmap
- 241 ansible-doc -l | grep fact
- 242 ansible-doc -l | grep _fact
- 243 ansible-doc -l | grep _fact | wc
- 244 vim quicktest.yml
- 245 ansible-playbook quicktest.yml
- 246 vim quicktest.yml
- 247 ansible-playbook quicktest.yml
- 248 vim quicktest.yml
- 249 ansible-playbook quicktest.yml
- 250 vim quicktest.yml
- 251 ansible-playbook quicktest.yml
- 252 vim command-output-test.yml
- 253 vgs centos
- 254 sudo vgs centos
- 255 vgs
- 256 sudo vgs
- 257 vim command-output-test.yml
- 258 ansible-playbook command-output-test.yml
- 259 vim command-output-test.yml
- 260 ansible-playbook command-output-test.yml
- 261 vim command-output-test.yml
- 262 vim when_multiple.yml
- 263 ansible-playbook when_multiple
- 264 ansible-playbook when_multiple.yml
- 265 vim when_multiple_complex.yml
- 266 ansible-playbook when_multiple_complex.yml
- 267 vim when_multiple_complex.yml
- 268 ansible-playbook when_multiple_complex.yml
- 269 vim ifsize.yml
- 270 ansible-playbook ifsize.yml
- 271 vim ifsize.yml
- 272 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement