Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@controller ~]$ history
- 1 ssh-keygen
- 2 ssh-copy-id ubuntu
- 3 ssh-copy-id centos7
- 4 ssh-copy-id rhel84
- 5 ansible all -i inventory -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 6 ls
- 7 cd projectone/
- 8 ansible all -i inventory -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 9 ansible all -i inventory -u ansible -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 10 cd ..
- 11 sudo dnf install git -y
- 12 git clone https://github.com/sandervanvugt/ansiblein3weeks
- 13 git clone https://github.com/sandervanvugt/ansible3weeks
- 14 git clone https://github.com/sandervanvugt/ansibleinthreeweeks
- 15 cd ansibleinthreeweeks/
- 16 ls
- 17 cd ..
- 18 git clone https://github.com/sandervanvugt/luth
- 19 luth/countdown 15
- 20 ansible ubuntu -i inventory -u ansible -k -K -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 21 cd projectone/
- 22 ansible ubuntu -i inventory -u ansible -k -K -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 23 ansible ubuntu -i inventory -u ansible -k -K -m command -a "ls -ld /etc/sudoers.d"
- 24 ansible ubuntu -i inventory -u ansible -k -K -m command -a "ls -la /root"
- 25 vim inventory
- 26 cat /etc/ansible/hosts
- 27 less /etc/ansible/ansible.cfg
- 28 cd ../ansibleinthreeweeks/
- 29 ls
- 30 cd basics/
- 31 ls
- 32 cd ..
- 33 find . -name "ansible.cfg"
- 34 vim ansible.cfg
- 35 cp ansible.cfg ../projectone/
- 36 cd ../projectone/
- 37 ls
- 38 vim inventory
- 39 cd -
- 40 cd collections/
- 41 ls
- 42 vim ansible.cfg
- 43 ansible-doc -l
- 44 ansible-doc -l | wc
- 45 cd ../../projectone/
- 46 history
- 47 ansible ubuntu -i inventory -u ansible -b -k -K -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 48 cat ansible.cfg
- 49 ansible -m package -a "name=nmap"
- 50 ansible ubuntu -m package -a "name=nmap"
- 51 ansible-doc package
- 52 ansible all -m command -a "useradd -m -s /bin/bash linda"
- 53 vim inventory
- 54 ansible all -m command -a "id linda"
- 55 ansible all -m command -a "useradd -m -s /bin/bash linda"
- 56 ansible all -m user -a "name=linda"
- 57 ../luth/countdown 12
- 58 sudo vim /etc/hosts
- 59 cd ../ansibleinthreeweeks/
- 60 ls
- 61 cd collections/
- 62 ls
- 63 vim enforce-selinux.yml
- 64 cd ../../projectone/
- 65 ansible all -m ping
- 66 ansible all -m user -a "name=lisa"
- 67 ansible all -m command -a "id lisa"
- 68 ansible all -m user -a "name=lisa state=absent"
- 69 ansible all -m command -a "id lisa"
- 70 ansible centos7 -m command -a "rpm -qa | grep python"
- 71 ansible centos7 -m shell -a "rpm -qa | grep python"
- 72 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
- 73 ansible all -m command -a "cat /etc/motd"
- 74 ansible all -m package -a "name=nmap state=latest"
- 75 ansible all -m service -a "name=httpd state=started"
- 76 cd ../ansibleinthreeweeks/
- 77 ls
- 78 cd basics/
- 79 ls
- 80 cp ../../projectone/* .
- 81 ls
- 82 vim install_and_start_httpt.yaml
- 83 ansible-doc service
- 84 ls
- 85 ansible-playbook install_and_start_httpt.yaml
- 86 cd ..
- 87 ../luth/countdown 25
- 88 vim kp.yaml
- 89 ansible-doc service
- 90 vim kp.yaml
- 91 ansible-doc firewalld
- 92 vim kp.yaml
- 93 ansible-playbook kp.yaml
- 94 cd ../projectone/
- 95 ansible-playbook ../ansibleinthreeweeks/kp.yaml
- 96 cd ../ansibleinthreeweeks/basics/
- 97 ls
- 98 vim multi_play.yaml
- 99 cp ../../projectone/inventory .
- 100 ansible-playbook multi_play.yaml
- 101 vim multi_play.yaml
- 102 ansible-doc yum
- 103 vim multi_play.yaml
- 104 ansible-doc yum
- 105 ansible-playbook multi_play.yaml
- 106 cd ../..
- 107 git clone https://github.com/sandervanvugt/rhce8-live
- 108 cd rhce8-live/
- 109 ls
- 110 cd lesson16/
- 111 ls
- 112 vim software-advanced.yml
- 113 vim setup-rhel.yml
- 114 grep prompt *
- 115 cd ..
- 116 grep -r prompt *
- 117 cat lesson15/assertsize.yml
- 118 cd lesson16/
- 119 ls
- 120 vim setup-rhel.yml
- 121 ansible-playbook setup-rhel.yml
- 122 vim inventory
- 123 ansible-playbook setup-rhel.yml
- 124 vim setup-rhel.yml
- 125 cp setup-rhel.yml ~/ansibleinthreeweeks/
- 126 cd ~/ansibleinthreeweeks/
- 127 ls
- 128 cd basics/
- 129 ls
- 130 ansible-playbook playbook_with_errors.yaml
- 131 vim playbook_with_errors.yaml
- 132 ansible-playbook playbook_with_errors.yaml
- 133 vim playbook_with_errors.yaml
- 134 ansible-playbook playbook_with_errors.yaml
- 135 vim playbook_with_errors.yaml
- 136 ansible-playbook playbook_with_errors.yaml
- 137 vim playbook_with_errors.yaml
- 138 pwd
- 139 ../../luth/countdown 12
- 140 cd ..
- 141 cd basics/
- 142 vim inventory
- 143 ansible rhel84 -a "yum repolist"
- 144 ls
- 145 vim variables_example.yaml
- 146 ansible-playbook variables_example.yaml
- 147 ansible-playbook variables_example.yaml -e user=bob
- 148 vim variables_example.yaml
- 149 ansible rhel84 -m setup > rhelfacts.txt
- 150 less rhelfacts.txt
- 151 ansible-doc -l | grep fact
- 152 ansible-doc -l | grep _fact
- 153 vim gather_facts.yaml
- 154 less rhelfacts.txt
- 155 ansible-playbook gather_facts.yaml
- 156 ls
- 157 vim old_facts.yaml
- 158 ansible-playbook old_facts.yaml
- 159 vim new_facts.yaml
- 160 ansible-playbook new_facts.yaml
- 161 vim new_facts.yaml
- 162 vim myvars.yaml
- 163 vim vars_file.yaml
- 164 ansible-playbook vars_file.yaml
- 165 ls
- 166 cp vars_file.yaml vars_host.yaml
- 167 mkdir host_vars
- 168 vim vars_host.yaml
- 169 vim host_vars/centos7
- 170 ansible-playbook vars_host.yaml
- 171 vim host_vars/centos7
- 172 ansible-playbook vars_host.yaml
- 173 cd ../
- 174 cd ../rhce8-live/lesson5/
- 175 ls
- 176 cd webservers/
- 177 ls
- 178 cat group_vars/lamp
- 179 vim site.yml
- 180 cd ../..
- 181 pwd
- 182 cd ../ansibleinthreeweeks/
- 183 cd basics/
- 184 ls
- 185 vim host_vars/centos7
- 186 ansible-playbook vars_host.yaml
- 187 cd ../..
- 188 cd rhce8-live/lesson16/
- 189 ls
- 190 vim software-advanced.yml
- 191 cd
- 192 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement