Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control factcache]$ history
- 1 sudo ls /root
- 2 ssh-keygen
- 3 ssh-copy-id ansible1
- 4 ssh-copy-id ansible2
- 5 ssh ansible1
- 6 ssh ansible2
- 7 sudo hostnamectl set-hostname control.example.com
- 8 exit
- 9 vim inventory
- 10 ansible all -i inventory -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 11 ansible all -i inventory -u ansible -m command -a "whoami"
- 12 ansible all -i inventory -u ansible -m command -a "ls -l /root"
- 13 ansible all -i inventory -u ansible -b -m command -a "ls -l /root"
- 14 ansible all -i inventory -u ansible -b -m command -a "whoami"
- 15 sudo dnf install git
- 16 git clone https://github.com/sandervanvugt/ansiblein3weeks
- 17 cd ansiblein3weeks/
- 18 ./countdown 12
- 19 ls
- 20 vim inventory
- 21 vim ansible.cfg
- 22 vim /etc/ansible/ansible.cfg
- 23 ansible --version
- 24 ansible-inventory --graph
- 25 ansible ansible1 -m command -a "useradd lisa"
- 26 ansible ansible1 -m user -a "name=lisa"
- 27 ansible-galaxy collection install ansible.posix
- 28 ansible-doc -l | wc
- 29 ansible-doc -l
- 30 ansible-doc user
- 31 ansible-galaxy collection install amazon.aws
- 32 ansible-doc -l | wc
- 33 vim ansible.cfg
- 34 ansible all -m command -a "rpm -qa | grep bash"
- 35 ansible all -m shell -a "rpm -qa | grep bash"
- 36 ssh-copy-id control
- 37 ansible all -m shell -a "rpm -qa | grep bash"
- 38 ls
- 39 vim create-user.yml
- 40 cd basics/
- 41 ls
- 42 vim install_and_start_httpt.yaml
- 43 ansible-playbook install_and_start_httpt.yaml
- 44 cat inventory
- 45 ansible-playbook install_and_start_httpt.yaml
- 46 ls
- 47 ln ../ansible.cfg ansible.cfg
- 48 ansible-playbook install_and_start_httpt.yaml
- 49 vim inventory
- 50 ansible nodes -m copy -a "src=/etc/hosts dest=/etc/hosts"
- 51 ansible-playbook install_and_start_httpt.yaml
- 52 vim ansible.cfg
- 53 ansible --help | less
- 54 ../countdown 12
- 55 vim variables_example.yaml
- 56 ansible-playbook variables_example.yaml
- 57 vim variables_example.yaml
- 58 ansible-playbook variables_example.yaml -e user=bob
- 59 vim gather_facts.yaml
- 60 ansible-playbook gather_facts.yaml
- 61 vim gather_facts.yaml
- 62 ansible-playbook gather_facts.yaml
- 63 ansible ansible2 -m setup | less
- 64 vim gather_facts.yaml
- 65 ansible ansible2 -m setup | less
- 66 ansible-playbook gather_facts.yaml
- 67 vim gather_facts.yaml
- 68 ansible-playbook gather_facts.yaml
- 69 vim old_facts.yaml
- 70 vim new_facts.yaml
- 71 ansible-playbook new_facts.yaml
- 72 ../countdown 1
- 73 vim myvars.yaml
- 74 vim vars_file.yaml
- 75 ansible-playbook vars_file.yaml
- 76 ansible localhost -m debug -a 'var=hostvars'
- 77 ls
- 78 cd ..
- 79 ls
- 80 cd basics/
- 81 vim vars_file.yaml
- 82 mkdir host_vars
- 83 vim host_vars/ansible1
- 84 ansible-playbook vars_file.yaml
- 85 vim vars_file.yaml
- 86 ansible-playbook vars_file.yaml
- 87 vim host_vars/ansible1
- 88 ansible-playbook vars_file.yaml
- 89 mkdir group_vars
- 90 vim group_vars/all
- 91 vim vars_file.yaml
- 92 ansible-playbook vars_file.yaml
- 93 ls
- 94 cd ..
- 95 find . -name register*
- 96 vim register.yaml
- 97 ansible-playbook register.yaml
- 98 cd basics/
- 99 ansible-inventory --graph --vars
- 100 ../countdown 18
- 101 ls
- 102 cd ..
- 103 ls
- 104 vim secret.yml
- 105 rm secret.yml
- 106 ansible-vault --help
- 107 ansible-vault create secret.yml
- 108 cat secret.yml
- 109 ls
- 110 vim create-user.yml
- 111 ansible-playbook create-user.yml
- 112 ansible-playbook --ask-vault-pass create-user.yml
- 113 ansible all -a "tail -1 /etc/shadow"
- 114 echo password > vault-pass
- 115 ansible-playbook --vault-password-file=vault-pass create-user.yml
- 116 ls
- 117 cd templates/
- 118 ls
- 119 vim vsftpd.j2
- 120 vim vsftpd-template.yml
- 121 ansible-doc -l | grep template
- 122 vim vsftpd-template.yml
- 123 ansible-playbook vsftpd-template.yml
- 124 pwd
- 125 ln ../inventory inventory
- 126 ln ../ansible ansible
- 127 ln ../ansible.cfg ansible.cfg
- 128 ansible-playbook vsftpd-template.yml
- 129 ansible ansible1 -a "cat /etc/vsftpd/vsftpd.conf"
- 130 cd ..
- 131 ls
- 132 cd task_control/
- 133 ls
- 134 ln ../ansible.cfg ansible.cfg
- 135 ln ../inventory inventory
- 136 vim handlers.yml
- 137 touch /tmp/index.html
- 138 ansible-playbook handlers.yml
- 139 vim handlers.yml
- 140 ansible-playbook handlers.yml
- 141 ansible ansible1 -m file -a "name=/var/www/html/index.html state=absent"
- 142 ansible-playbook handlers.yml
- 143 ls
- 144 vim loopservices.yml
- 145 ansible-playbook loopservices.yml
- 146 ls
- 147 vim ifsize.yml
- 148 ansible-playbook ifsize.yml
- 149 vim ifsize.yml
- 150 ansible-playbook ifsize.yml
- 151 ls
- 152 vim when_multiple.yml
- 153 ansible-playbook when_multiple.yml
- 154 vim when_multiple.yml
- 155 ansible-playbook when_multiple.yml
- 156 ../countdown 12
- 157 cat /etc/hosts
- 158 sudo -i
- 159 exit
- 160 history
- 161 sudo poweroff
- 162 ssh-add ~/.ssh/id_rsa
- 163 ssh-copy-id ansible1
- 164 ssh-copy-id ansible2
- 165 ansible all -a "whoami"
- 166 ssh-copy-id control
- 167 ls
- 168 grep -R lineinfile *
- 169 vim setup.yaml
- 170 vim setup_security.yaml
- 171 cat ansible.cfg
- 172 ansible-playbook --help | grep -k
- 173 ansible-playbook --help
- 174 ansible-playbook -K setup_security.yaml
- 175 vim setup_security.yaml
- 176 ansible-playbook -K setup_security.yaml
- 177 ansible all -a 'ls /root'
- 178 ./countdown 13
- 179 ls
- 180 cd filters/
- 181 ls
- 182 ln ../inventory inventory
- 183 ln ../ansible.cfg ansible.cfg
- 184 vim int-filter.yaml
- 185 ansible-playbook int-filter.yaml
- 186 vim int-filter.yaml
- 187 ansible-playbook int-filter.yaml
- 188 vim int-filter.yaml
- 189 ansible-playbook int-filter.yaml
- 190 vim int-filter.yaml
- 191 vim storage-filter.yaml
- 192 vim assert_filter.yaml
- 193 ansible-playbook assert_filter.yaml
- 194 vim password_hash.yaml
- 195 ansible-playbook password_hash.yaml
- 196 ssh sharon@ansible2
- 197 ansible ansible2 -a "tail /etc/shadow"
- 198 ssh ansible2
- 199 ls
- 200 cd ..
- 201 cd plugins/
- 202 ls
- 203 vim network.yaml
- 204 ansible-playbook network.yaml
- 205 ansible-galaxy collection install ansible.netcommon
- 206 vim network.yaml
- 207 ansible-playbook network.yaml
- 208 dnf install -y python3-netaddr
- 209 sudo dnf install -y python3-netaddr
- 210 ansible-playbook network.yaml
- 211 vim network.yaml
- 212 ansible-playbook network.yaml
- 213 vim readkeys.yaml
- 214 ls
- 215 ls student/
- 216 ls ansible/id_rsa.pub
- 217 vim readkeys.yaml
- 218 ansible-playbook readkeys.yaml
- 219 vim ansible.cfg
- 220 ln ../inventory inventory
- 221 vim inventory
- 222 ansible-playbook readkeys.yaml
- 223 ansible all -a "ls -l /home/student/.ssh/"
- 224 ansible-doc -t lookup -l
- 225 ls
- 226 vim hello.yml
- 227 vim mytemplate.j2
- 228 ansible-playbook hello.yml
- 229 vim mytemplate.j2
- 230 vim hello.yml
- 231 ansible-doc -t callback -l
- 232 vim ansible.cfg
- 233 sudo dnf provides */cgcreate
- 234 sudo dnf repolist
- 235 sudo dnf install epel-release
- 236 sudo dnf provides */cgcreate
- 237 vim ansible.cfg
- 238 ../countdown 18
- 239 vim ansible.cfg
- 240 ls
- 241 ansible-playbook network.yaml
- 242 cd ../windows/
- 243 ls
- 244 vim inventory
- 245 ansible-inventory --yaml -i inventory --list --output winventory.yaml
- 246 vim winventory.yaml
- 247 ansible-doc -t inventory -l
- 248 less /etc/ansible/ansible.cfg
- 249 sudo -i
- 250 sudo dnf install -y redis
- 251 sudo systemctl enable --now redis
- 252 sudo dnf search redis
- 253 sudo pip3 install redis
- 254 sudo dnf provides */pip3
- 255 sudo dnf install python3-pip
- 256 sudo pip3 install redis
- 257 cd ../plugins/
- 258 vim ansible.cfg
- 259 ansible all -m setup
- 260 ls
- 261 cd ..
- 262 ls
- 263 cd factcache/
- 264 ls
- 265 vim ansible.cfg
- 266 vim checkcache.py
- 267 vim inventory
- 268 ansible all -m setup
- 269 ./checkcache.py
- 270 vim inventory
- 271 vim checkcache.py
- 272 ./checkcache.py
- 273 vim checkfacts.yaml
- 274 ansible-playbook checkfacts.yaml
- 275 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement