Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The connection to the server 192.168.29.30:6443 was refused - did you specify the right host or port?
- [ansible@control kubernetes]$ history
- 1 cd ansiblein3weeks/
- 2 ./countdown 12
- 3 cd ansiblein3weeks/
- 4 ./countdown 1
- 5 cd ansiblein3weeks/
- 6 ./countdown 12
- 7 ip a
- 8 sudo vim /etc/hosts
- 9 ssh root@ansible1
- 10 sudo dnf search ansible
- 11 sudo dnf install ansible-core
- 12 ansible --version
- 13 history
- 14 vim inventory
- 15 ansible -i inventory all -m command -a "useradd ansible"
- 16 ping ansible2
- 17 ping ansible1
- 18 ansible -i inventory all -m command -a "useradd ansible" -k
- 19 ssh ansible1
- 20 ssh root@ansible1
- 21 ssh root@ansible2
- 22 ansible -i inventory all -m command -a "useradd ansible" -k -u root
- 23 ansible -i inventory all -m command -a "useradd ansible" -k -u student -b -K
- 24 history
- 25 sudo echo password | passwd --stdin ansible
- 26 sudo sh -c 'echo password | passwd --stdin ansible'
- 27 ansible -i inventory -m command -a "rpm -qa | grep bash"
- 28 ansible -i inventory all -m command -a "rpm -qa | grep bash"
- 29 ansible -i inventory all -m command -a "rpm -qa | grep bash" -k
- 30 ansible -i inventory all -m command -a "rpm -qa | grep bash" -k -u root
- 31 ansible -i inventory all -m shell -a "rpm -qa | grep bash" -k -u root
- 32 ansible -i inventory all -m shell -a "echo password | passwd --stdin ansible" -k -u root
- 33 ansible -i inventory all -m command -a "whoami" -k
- 34 ansible -i inventory all -m command -a "ls -l /root" -k
- 35 ansible -i inventory all -m command -a "ls -l /root" -k -b
- 36 ansible -i inventory all -m command -a "ls -l /root" -k -b -K
- 37 sudo dnf install git
- 38 git clone https://github.com/sandervanvugt/ansiblein3weeks
- 39 cd ansiblein3weeks/
- 40 ls
- 41 history
- 42 ansible-doc copy
- 43 #ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 44 sudo visudo
- 45 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 46 cat inventory
- 47 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u root -k
- 48 ansible -i inventory all -m command -a "ls -l /root" -k -b -K
- 49 history
- 50 ssh-keygen
- 51 ssh-copy-id ansible1.example.com
- 52 ssh-copy-id ansible2.example.com
- 53 ssh-copy-id control.example.com
- 54 ansible -i inventory all -m command -a "ls -l /root" -b
- 55 history
- 56 ansible -i inventory all -m command -a "useradd lisa" -b
- 57 ansible -i inventory all -m user -a "name=lisa" -b
- 58 history
- 59 ansible -i inventory all -m command -a "date"
- 60 vim ansible.cfg
- 61 ansible all -m command -a "date"
- 62 ansible all -m command -a "ls -l /root"
- 63 ansible all -m command -a "ls -l /root" -b
- 64 history
- 65 ansible --version
- 66 ansible-doc -l
- 67 ansible-doc -l | wc
- 68 ansible-galaxy collection install azure.azcollection
- 69 ansible-doc -l
- 70 cd basics/
- 71 ls
- 72 history | grep git
- 73 ls
- 74 vim run_and_test_httpd.yaml
- 75 ln ../inventory inventory
- 76 ln ../ansible.cfg ansible.cfg
- 77 vim inventory
- 78 vim ansible.cfg
- 79 ansible-playbook run_and_test_httpd.yaml
- 80 vim ansible.cfg
- 81 vim run_and_test_httpd.yaml
- 82 ansible-playbook run_and_test_httpd.yaml
- 83 vim run_and_test_httpd.yaml
- 84 ansible ansible2 -a "firewall-cmd --list-all" -b
- 85 ansible-doc firewalld
- 86 history | grep collection
- 87 ansible-galaxy collection install ansible.posix
- 88 ansible-doc -l | grep posix
- 89 ansible-doc firewalld
- 90 vim run_and_test_httpd.yaml
- 91 ansible-playbook run_and_test_httpd.yaml
- 92 vim run_and_test_httpd.yaml
- 93 curl ansible2
- 94 curl http://ansible2
- 95 ping ansible2
- 96 curl https://ansible2
- 97 history
- 98 ansible ansible2 -a "firewall-cmd --list-all" -b
- 99 vim run_and_test_httpd.yaml
- 100 ansible-playbook run_and_test_httpd.yaml
- 101 curl http://ansible2
- 102 vim run_and_test_httpd.yaml
- 103 ansible-doc uri
- 104 vim run_and_test_httpd.yaml
- 105 ansible-playbook run_and_test_httpd.yaml
- 106 vim run_and_test_httpd.yaml
- 107 ls
- 108 vim variables_example.yaml
- 109 ansible-playbook variables_example.yaml
- 110 ansible-playbook variables_example.yaml -e user=bob
- 111 vim variables_example.yaml
- 112 ansible-playbook variables_example.yaml -e user=bob
- 113 ../countdown 18
- 114 ls
- 115 vim gather_facts.yaml
- 116 ansible-playbook gather_facts.yaml | less
- 117 vim gather_facts.yaml
- 118 ansible-playbook gather_facts.yaml
- 119 ansible ansible1 -m setup | less
- 120 vim old_facts.yaml
- 121 ansible-playbook old_facts.yaml
- 122 vim new_facts.yaml
- 123 ansible-playbook new_facts.yaml
- 124 vim new_facts.yaml
- 125 ansible ansible1 -m setup | less
- 126 vim myvars.yaml
- 127 vim vars_file.yaml
- 128 ansible-playbook vars_file.yaml
- 129 ansible-playbook vars_file.yaml -b
- 130 ls
- 131 vim inventory
- 132 mkdir web
- 133 vim web/group_vars
- 134 vim vars_file.yaml
- 135 ansible-playbook vars_file.yaml
- 136 ls
- 137 vim inventory
- 138 vim web/group_vars
- 139 mkdir group_vars
- 140 mv web/group_vars group_vars/web
- 141 ansible-playbook vars_file.yaml
- 142 ansible-playbook vars_file.yaml -b
- 143 vim vars_file.yaml
- 144 ls\
- 145 ls
- 146 rm -rf web/
- 147 history
- 148 sudo poweroff
- 149 ssh-add ~/.ssh/id_rsa
- 150 ssh ansible1
- 151 ssh ansible2
- 152 vim securedo.yaml
- 153 ansible-playbook securedo.yaml
- 154 vim securedo.yaml
- 155 ansible-playbook securedo.yaml
- 156 ansible all -m copy -a "'content=ansible ALL=(ALL): ALL' dest=/etc/sudoers.d/ansible force=yes"
- 157 ansible all -m copy -a "content='ansible ALL=(ALL): ALL' dest=/etc/sudoers.d/ansible force=yes"
- 158 ansible all -m copy -a "content='ansible ALL=(ALL): ALL' dest=/etc/sudoers.d/ansible force=yes" -b
- 159 ansible all -a 'ls -l /root'
- 160 ansible all -a 'ls -l /root' -b
- 161 ansible all -a 'ls -l /root' -b -K
- 162 ssh ansible@ansible1
- 163 ssh ansible2
- 164 ansible all -a 'ls -l /root' -b -K
- 165 ansible all -a 'ls -l /root' -b
- 166 ../countdown 20
- 167 cd ../filters/
- 168 ls
- 169 vim int-filter.yaml
- 170 ansible-playbook int-filter.yaml
- 171 cp ../inventory .
- 172 cp ../ansible.cfg .
- 173 ansible-playbook int-filter.yaml
- 174 vim int-filter.yaml
- 175 ansible-playbook int-filter.yaml
- 176 vim int-filter.yaml
- 177 ansible-playbook int-filter.yaml
- 178 vim storage-filter.yaml
- 179 vim password_hash.yaml
- 180 ansible-playbook password_hash.yaml
- 181 ansible-playbook password_hash.yaml -b
- 182 vim assert_filter.yaml
- 183 ansible-playbook assert_filter.yaml
- 184 sudo dnf install -y python3-netaddr
- 185 ls
- 186 cd ..
- 187 ls
- 188 cd plugins/
- 189 ls
- 190 vim network.yaml
- 191 ansible-playbook network.yaml
- 192 cat ansible.cfg
- 193 cat inventory
- 194 cp ../inventory .
- 195 ansible-playbook network.yaml
- 196 ansible-galaxy collection install ansible.netcommon
- 197 ansible-playbook network.yaml
- 198 vim network.yaml
- 199 ansible-playbook network.yaml
- 200 #ansible-galaxy collection install ansible.netcommon
- 201 vim readkeys.yaml
- 202 ansible-playbook readkeys.yaml
- 203 vim readkeys.yaml
- 204 ls
- 205 ls ansible/id_rsa.pub
- 206 ansible-doc -t lookup -l
- 207 ansible-doc -t lookup file
- 208 ls
- 209 vim hello.yml
- 210 ansible-playbook hello.yml
- 211 find .. -name "mytemplate*"
- 212 cp ../templates/mytemplate.j2 .
- 213 ansible-playbook hello.yml
- 214 vim mytemplate.j2
- 215 ../countdown 9
- 216 vim nm-week3.yaml
- 217 vim ansible.cfg
- 218 ls
- 219 ansible-playbook hello.yml
- 220 ansible-inventory --yaml -i inventory --list --output inventory.yaml
- 221 vim ansible.cfg
- 222 ansible-inventory --yaml -i inventory --list --output inventory.yaml
- 223 vim inventory.yaml
- 224 cat ../windows/inventory
- 225 ansible-inventory --yaml -i ../windows/inventory --list --output winventory.yaml
- 226 vim winventory.yaml
- 227 ansible-doc -t inventory -l
- 228 sudo dnf install -y redis
- 229 sudo systemctl enable --now redis
- 230 sudo pip3 install redis
- 231 sudo dnf install python3-pip -y
- 232 sudo pip3 install redis
- 233 vim ansible.cfg
- 234 ansible all -m setup
- 235 ls
- 236 cd ..
- 237 ls
- 238 cd factcache/
- 239 ls
- 240 ./checkcache.py
- 241 vim ansible.cfg
- 242 ansible all -m setup | less
- 243 ansible-galaxy collection install community.general
- 244 ansible all -m setup | less
- 245 vim inventory
- 246 ansible all -m setup
- 247 ./checkcache.py
- 248 ansible all -m setup | less
- 249 vim checkfacts.yaml
- 250 ansible-playbook checkfacts.yaml
- 251 vim checkfacts.yaml
- 252 history
- 253 sudo poweroff
- 254 history
- 255 cd ansiblein3weeks/
- 256 ls
- 257 cd windows/
- 258 ls
- 259 sudo vim /etc/hosts
- 260 vim inventory
- 261 vim ansible.cfg
- 262 #sudo pip3 install pywinrm
- 263 sudo dnf search pip
- 264 sudo pip3 install pywinrm
- 265 ansible win -i inventory -m win_ping
- 266 ansible galaxy collection install ansible.windows
- 267 ansible-galaxy collection install ansible.windows
- 268 ansible win -i inventory -m win_ping
- 269 ansible win -i inventory -m setup
- 270 ansible-doc -l | grep fact
- 271 ansible-doc -l | grep win | less
- 272 vim playbook.yml
- 273 ansible-doc win_user
- 274 ansible-playbook playbook.yml
- 275 vim wiebenik.yaml
- 276 ansible-playbook wiebenik.yaml
- 277 ls
- 278 vim createad.yml
- 279 ansible-playbook createad.yml
- 280 cd ..
- 281 ls
- 282 cd docker/
- 283 ls
- 284 cat inventory
- 285 cat /etc/hosts
- 286 sudo vim /etc/hosts
- 287 vim ansible.cfg
- 288 ansible -a "whoami"
- 289 ansible dubuntu -a "whoami"
- 290 vim inventory
- 291 ansible dubuntu -a "whoami"
- 292 ssh-copy-id
- 293 ssh-copy-id dubuntu
- 294 ssh-copy-id ansible@dubuntu
- 295 cat /etc/hosts
- 296 vim ansible.cfg
- 297 sudo vim /etc/hosts
- 298 ssh-copy-id dubuntu
- 299 ansible dubuntu -a "whoami" -k
- 300 ansible dubuntu -a "whoami" -k -b -K
- 301 ansible dubuntu -a "whoami" -k
- 302 ansible dubuntu -a "whoami" -k -K
- 303 sudo cat /etc/sudoers.d/ansible
- 304 ansible dubuntu -a "whoami" -k
- 305 ssh-copy-id dubuntu
- 306 ls
- 307 vim docker_main.yaml
- 308 vim docker-ubuntu.yaml
- 309 vim newdocker.yaml
- 310 vim docker-ubuntu.yaml
- 311 sudo apt search docker.io
- 312 ansible dubuntu -a "apt search docker.io"
- 313 vim docker-ubuntu.yaml
- 314 vim newdocker.yaml
- 315 ls
- 316 ansible-playbook docker_main.yaml
- 317 ansible-galaxy collection install community.docker
- 318 ansible-playbook docker_main.yaml \
- 319 ansible-playbook docker_main.yaml
- 320 history
- 321 ls
- 322 vim podman.yaml
- 323 ansible-galaxy collection install containers.podman
- 324 ansible-doc -l | grep podman
- 325 vim podman.yaml
- 326 vim inventory
- 327 ansible-playbook podman.yaml
- 328 ansible-playbook podman.yaml -K
- 329 podman search httpd | grep docker
- 330 vim podman.yaml
- 331 ansible-playbook podman.yaml
- 332 vim podman.yaml
- 333 ansible-playbook podman.yaml
- 334 ansible ansible1 -a "podman ps"
- 335 ssh ansible1
- 336 vim podman.yaml
- 337 ssh ansible1
- 338 cd ../cisco/
- 339 ls
- 340 ansible-galaxy collection install community.ciscosmb
- 341 ansible-doc -l | grep cisco
- 342 vim inventory-
- 343 vim inventory-smb
- 344 vim ansible.cfg
- 345 ansible switch1 -i inventory-smb -m ping -u admin -k
- 346 vim inventory-smb
- 347 vim ~/.ssh/config
- 348 sudo pip3 install paramiko
- 349 vim inventory-smb
- 350 cat inventory-ios
- 351 ls
- 352 vim smbfacts.yaml
- 353 ansible-playbook smbfacts.yaml
- 354 ansible-playbook smbfacts.yaml -i inventory-smb
- 355 vim iosbackup.yml
- 356 ansible-galaxy collection install cisco.ios
- 357 vim iosbackup.yml
- 358 ls
- 359 ansible-playbook -i inventory-ios iosbackup.yml
- 360 ls
- 361 cd backup/
- 362 ls
- 363 less switch1_config.2022-09-23@16\:08\:06
- 364 cd ..
- 365 ./countdown 14
- 366 cd provision-kvm/
- 367 ls
- 368 cat host_vars/
- 369 cat host_vars/localhost
- 370 cat ansible.cfg
- 371 ssh student@192.168.52.129
- 372 rm ~/.ssh/config
- 373 ssh student@192.168.52.129
- 374 ping 192.168.52.129
- 375 ping 192.168.52.162
- 376 cd ..
- 377 ping 192.168.52.136
- 378 ssh student@192.168.52.136
- 379 ssh ansible@192.168.52.136
- 380 ansible-galaxy collection install azure.azcollection
- 381 cd azure/
- 382 ls
- 383 vim create-azure-stuff.yaml
- 384 ansible-playbook create-azure-stuff.yaml
- 385 sudo pip3 install 'ansible[azure]'
- 386 ansible-playbook create-azure-stuff.yaml
- 387 sudo pip3 install msrest
- 388 ansible-playbook create-azure-stuff.yaml
- 389 sudo pip3 install msrestazure
- 390 ansible-playbook create-azure-stuff.yaml
- 391 sudo pip3 install azure.cli
- 392 ansible-playbook create-azure-stuff.yaml
- 393 sudo pip3 install azure.storage.cloudstorageaccount
- 394 sudo pip3 install azure.storage
- 395 ansible-playbook create-azure-stuff.yaml
- 396 sudo pip3 install azure.mgmt
- 397 ansible-playbook create-azure-stuff.yaml
- 398 ansible-galaxy collection install community.azure
- 399 ansible-playbook create-azure-stuff.yaml
- 400 sudo pip3 install boto boto3
- 401 cd ../ec2/
- 402 ls
- 403 mkdir group_vars
- 404 mkdir all
- 405 ls ~
- 406 cat ~/aws_keys
- 407 pwd
- 408 ansible-vault create group_vars/all/keys.yml
- 409 ansible-vault edit group_vars/all/keys.yml
- 410 clear
- 411 vim list-instances.yml
- 412 ansible-playbook --ask-vault-pass list-instances.yml
- 413 vim ubuntu-new.yaml
- 414 ansible-playbook --ask-vault-pass ubuntu-new.yaml
- 415 ansible-playbook --ask-vault-pass list-instances.yml
- 416 ansible localhost -m ec2 -a 'instance_id=i-018ca5cd07702a56d state=absent region=us-west-2'
- 417 ansible localhost --ask-vault-pass -m ec2 -a 'instance_id=i-018ca5cd07702a56d state=absent region=us-west-2'
- 418 ls
- 419 cp ubuntu-new.yaml ubuntu-kill.yaml
- 420 vim ubuntu-kill.yaml
- 421 ansible-playbook --ask-vault-pass ubuntu-kill.yaml
- 422 ansible-playbook --ask-vault-pass list-instances.yml
- 423 cd ..
- 424 ./countdown 10
- 425 pip3 install kubernetes
- 426 pip3 install openshift
- 427 ansible-galaxy collection install kubernetes.core
- 428 ansible-galaxy collection install community.kubernetes
- 429 cat /etc/hosts
- 430 cd kubernetes/
- 431 ls
- 432 cat README.txt
- 433 ansible-galaxy role install geerlingguy.containerd
- 434 ls -l
- 435 cat inventory
- 436 vim inventory
- 437 vim kube-cluster-setup.yaml
- 438 ansible-playbook kube-cluster-setup.yaml -u ansible -k -K -e kubehost=kubuntu
- 439 vim kube-cluster-setup.yaml
- 440 ansible-playbook kube-cluster-setup.yaml -u ansible -k -K
- 441 vim inventory
- 442 ping kubuntu
- 443 ansible kubuntu -a "whoami"
- 444 ansible-playbook kube-cluster-setup.yaml -u ansible -k -K -i inventory
- 445 cp ../ansible.cfg .
- 446 vim ansible.cfg
- 447 ansible-playbook kube-cluster-setup.yaml -k
- 448 vim ansible.cfg
- 449 vim kube-cluster-setup.yaml
- 450 ansible-playbook kube-cluster-setup.yaml -k
- 451 kubectl get all
- 452 kubectl get all -A
- 453 vim kube-cluster-setup.yaml
- 454 ansible-playbook --tags finishin kube-cluster-setup.yaml -k
- 455 ansible-playbook --tags finishing kube-cluster-setup.yaml -k
- 456 kubectl get all
- 457 vim kube-cluster-setup.yaml
- 458 ansible-playbook --tags finishing kube-cluster-setup.yaml -k
- 459 kubectl edit node
- 460 kubectl run nginx --image=nginx
- 461 kubectl get all
- 462 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement