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