Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control kubernetes]$ history
- 1 ip a
- 2 sudo vim /etc/hosts
- 3 ping ubuntu
- 4 sudo dnf install ansible-core
- 5 ansible --version
- 6 vim inventory
- 7 ansible -i inventory all -u student -k -b -K -m command -a "useradd ansible"
- 8 ssh student@ansile1
- 9 ssh student@ansible1
- 10 ssh student@ansible2
- 11 ssh student@ubuntu
- 12 ansible -i inventory all -u student -k -b -K -m command -a "useradd ansible"
- 13 ansible -i inventory all -u student -k -b -K -m user -a "name=ansible state=present"
- 14 history
- 15 ansible -i inventory all -u student -k -b -K -m shell "echo password | passwd --stdin ansible"
- 16 ansible -i inventory all -u student -k -b -K -m shell -a "echo password | passwd --stdin ansible"
- 17 sudo visudo
- 18 ansible -i inventory all -u student -k -b -K -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 19 ansible -i inventory all -u ansible -k -b -m command -a "ls -l /root"
- 20 sudo dnf install -y git
- 21 git clone https://github.com/sandervanvugt/ansiblein3weeks
- 22 history
- 23 cd ansiblein3weeks/
- 24 ls
- 25 cd basics/
- 26 ls
- 27 cd ..
- 28 vim ansible.cfg
- 29 cp ../inventory .
- 30 ansible all -k -a "ls -l /root"
- 31 ssh-keygen
- 32 ssh-copy-id ansible1
- 33 ssh-copy-id ansible2
- 34 ssh-copy-id ubuntu
- 35 history
- 36 exit
- 37 cd ansiblein3weeks/
- 38 ./countdown 13
- 39 ./countdown 1
- 40 ./countdown 18
- 41 ./countdown 13
- 42 cd ..
- 43 ./countdown 17
- 44 vim secureme.yml
- 45 ansible-playbook secureme.yml
- 46 ansible all -a "cat /etc/sudoers.d/ansible"
- 47 sudo visudo
- 48 ansible all -m copy -a "content='ansible ALL=(ALL) ALL' dest=/etc/sudoers.d/ansible"
- 49 ansible all -a 'ls /root'
- 50 ansible all -a 'ls /root' -K
- 51 ansible all -a 'ls /root'
- 52 ls
- 53 cd filters/
- 54 ls
- 55 cat storage-filter.yaml
- 56 vim storage-filter.yaml
- 57 ansible-playbook storage-filter.yaml
- 58 cp ../inventory .
- 59 ls
- 60 cp ../ansible.cfg .
- 61 ansible-galaxy collection install community.general
- 62 ansible-playbook storage-filter.yaml
- 63 vim inventory
- 64 ansible-playbook storage-filter.yaml
- 65 ansible-playbook storage-filter.yaml -K
- 66 vim storage-filter.yaml
- 67 ansible-playbook storage-filter.yaml -K
- 68 ansible ansible1 -m setup | less
- 69 vim int-filter.yaml
- 70 ansible-playbook int-filter.yaml
- 71 vim int-filter.yaml
- 72 ansible-playbook int-filter.yaml
- 73 vim int-filter.yaml
- 74 ansible-playbook int-filter.yaml
- 75 vim assert_filter.yaml
- 76 ansible-playbook assert_filter.yaml
- 77 vim assert_filter.yaml
- 78 ansible-playbook assert_filter.yaml
- 79 vim password_hash.yaml
- 80 ansible-playbook password_hash.yaml
- 81 history
- 82 sudo poweroff
- 83 cd ansiblein3weeks/
- 84 ./countdown 1
- 85 podman images
- 86 cd ansiblein3weeks/
- 87 ls
- 88 ansible-navigator
- 89 ansible-navigator images
- 90 ansible-navigator --help
- 91 ansible-navigator run basics/install_and_start_httpt.yaml
- 92 ls
- 93 cd ..
- 94 ls
- 95 cd ansiblein3weeks/
- 96 cd /usr/share/doc/rhel-system-roles/selinux/
- 97 ls
- 98 vim example-selinux-playbook.yml
- 99 cd
- 100 cd ansiblein3weeks/includes/
- 101 ls
- 102 vim install-and-setup.yml
- 103 vim includes.yml
- 104 ls
- 105 cd lab/
- 106 s
- 107 ls
- 108 vim lab-playbook.yml
- 109 vim lab-tasks/file.yml
- 110 cd ..
- 111 ansible --version
- 112 ls
- 113 cd collections/
- 114 ls
- 115 vimn enforce-selinux-simplified.yml
- 116 vim enforce-selinux-simplified.yml
- 117 ansible-doc -l | less
- 118 ansible-galaxy collection list
- 119 history
- 120 su - student
- 121 ls
- 122 history
- 123 cd ansiblein3weeks/
- 124 ls
- 125 cd plugins/
- 126 ls
- 127 vim readkeys.yaml
- 128 ls ansible
- 129 ls student/
- 130 vim readkeys.yaml
- 131 ansible-playbook readkeys.yaml
- 132 vim inventory
- 133 ansible-playbook readkeys.yaml
- 134 ansible-playbook readkeys.yaml -K
- 135 ansible ansible2 -a "ls /root"
- 136 ansible-doc -t lookup -l
- 137 ansible-doc -t lookup url
- 138 vim hello.yml
- 139 ls
- 140 find ../.. -name "mytemplate.j2"
- 141 vim hello.yml
- 142 cp ../templates/mytemplate.j2 .
- 143 ansible-playbook hello.yml
- 144 ansible-playbook hello.yml -K
- 145 cat mytemplate.j2
- 146 ansible-doc -t callback -l
- 147 vim ansible.cfg
- 148 ansible-doc -t callback log_plays
- 149 vim ansible.cfg
- 150 ansible-doc -t callback log_plays
- 151 ansible-doc -t callback cgroup_perf_recap
- 152 vim ansible.cfg
- 153 ls
- 154 cat hello.yml
- 155 ansible-playbook hello.yml
- 156 ansible-playbook hello.yml -K
- 157 vim ansible.cfg
- 158 ansible-playbook hello.yml -K
- 159 sudo vim /etc/ansible/ansible.cfg
- 160 ls
- 161 cd ansible/
- 162 ansible-config init --disabled > ansible.cfg
- 163 vim ansible.cfg
- 164 cd ..
- 165 cd ../windows/
- 166 ls
- 167 vim inventory
- 168 ansible-inventory --yaml -i inventory --list --output winventory.yaml
- 169 vim winventory.yaml
- 170 vim inventory
- 171 ansible-inventory --yaml -i inventory --list --output winventory.yaml
- 172 vim winventory.yaml
- 173 ansible-doc -l -t inventory
- 174 sudo dnf install -y redis
- 175 sudo systemctl enable --now redis
- 176 sudo pip3 install redis
- 177 cd ../plugins/
- 178 ls
- 179 cd ..
- 180 grep -R 6379 *
- 181 cd factcache/
- 182 ls
- 183 vim ansible.cfg
- 184 ansible all -m setup
- 185 vim inventory
- 186 ansible all -m setup
- 187 ansible ansible1 -m setup -K
- 188 ls
- 189 cat checkcache.py
- 190 vim checkcache.py
- 191 ./checkcache.py
- 192 vim checkcache.py
- 193 ./checkcache.py
- 194 vim checkfacts.yaml
- 195 ansible-playbook checkfacts.yaml
- 196 ls
- 197 cat setupfactcache.yaml
- 198 cat changeconfig.yaml
- 199 vim changeconfig.yaml
- 200 ansible-playbook changeconfig.yaml
- 201 ansible-playbook changeconfig.yaml -K
- 202 vim changeconfig.yaml
- 203 ansible-playbook changeconfig.yaml -K
- 204 cd ..
- 205 vim ansible.cfg
- 206 cd -
- 207 vim changeconfig.yaml
- 208 history
- 209 cd ../windows/
- 210 sudo vim /etc/hosts
- 211 pwd
- 212 vim inventory
- 213 vim ansible.cfg
- 214 sudo pip3 install pywinrm
- 215 echo $PYTHONPATH
- 216 export PYTHONPATH=/usr/lib/python3.9/site-packages:/usr/lib64/python3.9/site-packages:/usr/local/bin
- 217 vim ~/.bashrc
- 218 ansible-doc -l | grep win
- 219 ansible-galaxy collections install ansible.windows
- 220 ansible-galaxy collection install ansible.windows
- 221 ansible-galaxy collection install community.windows
- 222 ansible-doc -l | grep win
- 223 ansible win -i inventory -m win_ping
- 224 vim inventory
- 225 vim ansible.cfg
- 226 vim inventory
- 227 ansible win -i inventory -m win_ping
- 228 vim inventory
- 229 ansible win -i inventory -m win_ping
- 230 vim inventory
- 231 vim ansible.cfg
- 232 vim inventory
- 233 ansible win -i inventory -m win_ping
- 234 vim playbook.yml
- 235 ansible-playbook playbook.yml
- 236 ls
- 237 vim wiebenik.yaml
- 238 ansible-playbook wiebenik
- 239 ansible-playbook wiebenik.yaml
- 240 vim createad.yml
- 241 ansible-playbook createad.yml
- 242 cd ..
- 243 ansible-doc -l | grep docker
- 244 ansible-galaxy collection install ansible.docker
- 245 ansible-galaxy collection install community.docker
- 246 ansible-doc -l | grep docker
- 247 cd docker/
- 248 ls
- 249 less readme.txt
- 250 vim newdocker.yaml
- 251 ansible-playbook newdocker.yaml
- 252 sudo vim /etc/hosts
- 253 ansible-playbook newdocker.yaml
- 254 ansible-playbook -vvv newdocker.yaml
- 255 ls
- 256 vim podman.yaml
- 257 ansible-galaxy collection install containers.podman
- 258 ls ~/Downloads/
- 259 ansible-galaxy collection list
- 260 cd ~/.ansible/collections/ansible_collections/
- 261 tar -xvf ~/Downloads/containers-podman-1.10.3.tar.gz .
- 262 tar -xvf ~/Downloads/containers-podman-1.10.3.tar.gz
- 263 ls
- 264 mkdir containers.podman
- 265 tar -xvf ~/Downloads/containers-podman-1.10.3.tar.gz -C containers.podman/
- 266 ansible-galaxy collection list
- 267 cd
- 268 cd ansiblein3weeks/docker/
- 269 ls
- 270 vim podman.yaml
- 271 ansible-playbook podman.yaml
- 272 vim podman.yaml
- 273 ansible-playbook podman.yaml
- 274 ansible-doc -l | grep podman
- 275 cd ~/.ansible/collections/ansible_collections/
- 276 ls
- 277 ls ansible
- 278 ls containers.podman/
- 279 ansible-galaxy collection install containers.podman
- 280 ansible-doc -l | grep podman
- 281 ls
- 282 rm -f *
- 283 ls
- 284 rm -rf docs meta plugins tests changelogs
- 285 ansible-doc -l | grep podman
- 286 cd -
- 287 ls
- 288 ansible-playbook podman.yaml
- 289 vim inventory
- 290 ansible-playbook podman.yaml
- 291 ansible-playbook podman.yaml -K
- 292 ansible ansible2 -a "podman ps"
- 293 curl ansible2:4444
- 294 ssh ansible@192.168.52.137
- 295 ssh ansible@192.168.52.136
- 296 cd ../
- 297 ls
- 298 cd esxi/
- 299 ls
- 300 vim setup-esxi.yaml
- 301 sudo pip3 install boto boto3
- 302 cd ..
- 303 cd ec2/
- 304 ls
- 305 mkdir -p group_vars/all
- 306 ansible-vault create group_vars/all/keys.yml
- 307 ansible-vault view group_vars/all/keys.yml
- 308 exit
- 309 cd ansiblein3weeks/
- 310 ./countdown 13
- 311 ./countdown 1
- 312 ./countdown 18
- 313 exit
- 314 cd ansiblein3weeks/
- 315 cd ec2/
- 316 ls
- 317 vim list-instances.yml
- 318 ansible-playbook --aks-vault-pass list-instances.yml
- 319 ansible-playbook --ask-vault-pass list-instances.yml
- 320 vim list-instances-new.yml
- 321 ansible-galaxy collection install community.aws
- 322 ansible-doc -l | grep aws
- 323 ansible-doc -l | wc -l
- 324 ansible-playbook --ask-vault-pass list-instances.yml
- 325 vim ubuntu-new.yaml
- 326 ansible-vault edit group_vars/all/keys.yml
- 327 ansible-playbook --ask-vault-pass list-instances.yml
- 328 vim list-instances.yml
- 329 ansible-playbook --ask-vault-pass ubuntu-new.yaml
- 330 ansible-playbook --ask-vault-pass ubuntu.yaml
- 331 ls
- 332 vim ubuntu-new.yaml
- 333 ansible-doc -l | grep aws | less
- 334 vim ubuntu-new.yaml
- 335 ansible-playbook --ask-vault-pass ubuntu.yaml
- 336 ansible-playbook --ask-vault-pass ubuntu-new.yaml
- 337 vim ubuntu-new.yaml
- 338 ansible-playbook --ask-vault-pass ubuntu-new.yaml
- 339 ansible-doc ec2_instance
- 340 vim ubuntu-new.yaml
- 341 ansible-playbook --ask-vault-pass ubuntu-new.yaml
- 342 vim ubuntu-new.yaml
- 343 vim list-instances.yml
- 344 ansible-playbook list-instances.yml
- 345 ansible-playbook list-instances.yml --ask-vault-password
- 346 cd
- 347 sudo vim /etc/hosts
- 348 cd ansiblein3weeks/kubernetes/
- 349 ls
- 350 ls -l
- 351 vim README.txt
- 352 ansible-galaxy role install geerlingguy.containerd
- 353 ls
- 354 vim kube-cluster-setup.yaml
- 355 ansible-galaxy collection install kubernetes.core
- 356 ansible-doc | grep k8s
- 357 ansible-doc -l | grep k8s
- 358 ansible-doc k8s
- 359 vim kube-cluster-setup.yaml
- 360 ansible-playbook kube-cluster-setup.yaml
- 361 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu
- 362 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K
- 363 vim inventory
- 364 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K
- 365 vim kube-cluster-setup.yaml
- 366 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K
- 367 vim inventory
- 368 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K -b -k -i inventory
- 369 cp ../ansible.cfg .
- 370 vim ansible.cfg
- 371 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K
- 372 ssh kubuntu
- 373 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K
- 374 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K -k
- 375 kubectl get all
- 376 kubectl get pods -n kube-system
- 377 ansible-playbook kube-cluster-setup.yaml -e kubehost=kubuntu -K -k
- 378 ls
- 379 vim kube-cluster-setup.yaml
- 380 ansible-playbook --tags=finishing kube-cluster-setup.yaml -k -K
- 381 vim kube-cluster-setup.yaml
- 382 ansible-playbook --tags=finishing kube-cluster-setup.yaml -k -K
- 383 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement