Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control roles]$ cd
- [ansible@control ~]$ 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 history
- 38 ansible-doc -l
- 39 ansible-doc user
- 40 ansible-doc -l | wc -l
- 41 ansible-doc -l
- 42 ansible ansible1 -m command -a "rpm -qa | grep python"
- 43 cd ansiblein3weeks/
- 44 ansible ansible1 -m command -a "rpm -qa | grep python"
- 45 ansible ansible1 -m shell -a "rpm -qa | grep python"
- 46 ansible-doc copy
- 47 ls
- 48 cd basics/
- 49 ls
- 50 vim install_and_start_httpt.yaml
- 51 ansible-playbook install_and_start_httpt.yaml
- 52 ls
- 53 cp ../inventory .
- 54 cp ../ansible.cfg .
- 55 ansible-playbook install_and_start_httpt.yaml
- 56 vim lab4.yml
- 57 vim inventory
- 58 vim lab4.yml
- 59 ansible lab4.yml
- 60 ansible-playbook lab4.yml
- 61 vim lab4.yml
- 62 ansible-doc dnf
- 63 vim lab4.yml
- 64 ansible-doc service
- 65 vim lab4.yml
- 66 ansible-doc firewalld
- 67 ansible-galaxy collection install ansible.posix
- 68 ansible-doc firewalld
- 69 vim lab4.yml
- 70 history
- 71 ansible-playbook lab4.yml
- 72 cp lab4.yml unlab4.yml
- 73 vim unlab4.yml
- 74 ansible-playbook unlab4.yml
- 75 ansible-playbook lab4.yml
- 76 cat lab4.yml
- 77 historty
- 78 history
- 79 cat lab4.yml
- 80 ls
- 81 vim variables_example.yaml
- 82 ansible-playbook variables_example.yaml
- 83 vim variables_example.yaml
- 84 ansible-playbook variables_example.yaml
- 85 ansible-playbook variables_example.yaml -e user=linda
- 86 vim variables_example.yaml
- 87 ansible-playbook variables_example.yaml -e user=linda
- 88 vim gather_facts.yaml
- 89 ansible-playbook gather_facts.yaml
- 90
- 91 vim gather_facts.yaml
- 92 ansible-playbook gather_facts.yaml
- 93 vim gather_facts.yaml
- 94 ansible-playbook gather_facts.yaml
- 95 vim gather_facts.yaml
- 96 vim old_facts.yaml
- 97 vim new_facts.yaml
- 98 ansible-playbook new_facts.yaml
- 99 vim centspecs.txt
- 100 vim myvars.yaml
- 101 vim vars_file.yaml
- 102 ansible-playbook vars_file.yaml
- 103 ls
- 104 vim install_and_start_httpt.yaml
- 105 cat inventory
- 106 mkdir group_vars
- 107 vim group_vars/rhfamily
- 108 vim group_vars/nonrhfamily
- 109 vim install_and_start_httpt.yaml
- 110 ansible-playbook install_and_start_httpt.yaml
- 111 ls
- 112 tree
- 113 vim install_and_start_httpt.yaml
- 114 vim inventory
- 115 ansible-playbook install_and_start_httpt.yaml
- 116 ansible localhost -m debug -a 'var=hostvars["inventory_hostname"]'
- 117 ansible ansible1 -m debug -a 'var=hostvars["inventory_hostname"]'
- 118 ls
- 119 cd ..
- 120 find . -name "register*"
- 121 ls
- 122 vim register.yaml
- 123 ansible-playbook register.yaml
- 124 vim register.yaml
- 125 ansible-playbook register.yaml
- 126 vim register.yaml
- 127 ansible-vault create secret.yml
- 128 ansible-vault edit secret.yml
- 129 cat secret.yml
- 130 vim create-user.yml
- 131 ansible-playbook create-user.yml
- 132 ansible-playbook --ask-vault-pass create-user.yml
- 133 echo password > vault-pass
- 134 ansible-playbook --vault-password-file=vault-pass create-user.yml
- 135 history
- 136 ls
- 137 cd templates/
- 138 s
- 139 ls
- 140 vim vsftpd.j2
- 141 vim vsftpd-template.yml
- 142 ansible-playbook vsftpd-template.yml
- 143 cp ../inventory .
- 144 cp ../ansible.cfg .
- 145 ansible-playbook vsftpd-template.yml
- 146 ansible rhfamily -a "cat /etc/vsftpd/vsftpd.conf"
- 147 vim inventory
- 148 ansible ansible1 -a "cat /etc/vsftpd/vsftpd.conf"
- 149 ansible-doc file
- 150 cd ..
- 151 ls
- 152 cd task_control/
- 153 ls
- 154 vim handlers.yml
- 155 echo hello world > /tmp/index.html
- 156 ansible-playbook handlers.yml
- 157 cp ../inventory .
- 158 cp ../ansible.cfg .
- 159 ansible-playbook handlers.yml
- 160 vim handlers.yml
- 161 ansible-playbook handlers.yml
- 162 ansible ansible1 -m file -a "path=/var/www/html/index.html state=absent"
- 163 ansible-playbook handlers.yml
- 164 ls
- 165 vim loopservices.yml
- 166 ansible-playbook loopservices.yml
- 167 vim loopservices.yml
- 168 ansible-playbook loopservices.yml
- 169 vim loopservices.yml
- 170 ansible-doc yum
- 171 vim loopservices.yml
- 172 ansible-playbook loopservices.yml
- 173 vim loopservices.yml
- 174 ansible-playbook loopservices.yml
- 175 ls
- 176 vim ifsize.yml
- 177*
- 178 vim ifsize.yml
- 179 ansible-playbook ifsize.yml
- 180 vim ifsize.yml
- 181 ansible-playbook ifsize.yml
- 182 ls
- 183 vim when_multiple.yml
- 184 ansible-playbook when_multiple.yml
- 185 cd ..
- 186 git clone https://github.com/sandervanvugt/ansiblefundamentals
- 187 cd ansiblefundamentals/
- 188 ls
- 189 vim when_complex.yaml
- 190 ansible-playbook when_complex.yaml
- 191 vim inventory
- 192 ansible-playbook when_complex.yaml
- 193 vim when_test.yaml
- 194 ansible-playbook when_test.yaml
- 195 vim when_register.yaml
- 196 ansible-playbook when_register.yaml
- 197 cd ../ansiblein3weeks/
- 198 history
- 199 ls
- 200 cd roles/
- 201 ls
- 202 ls roles/
- 203 vim nginx-role.yml
- 204 ansible-galaxy roles install geerlingguy.nginx
- 205 ansible-galaxy role install geerlingguy.nginx
- 206 pwd
- 207 ls
- 208 cd roles
- 209 ls
- 210 pwd
- 211 cd /home/ansible/.ansible/roles/geerlingguy.nginx
- 212 ls
- 213 cd tasks
- 214 ls
- 215 vim main.yml
- 216 cd ..
- 217 cd
- 218 cd ansiblein3weeks/roles/
- 219 ls
- 220 vim nginx-role.yml
- 221 ansible-playbook nginx-role.yml
- 222 cp ../inventory .
- 223 cp ../ansible.cfg .
- 224 ansible-playbook nginx-role.yml
- 225 ls
- 226 vim motd-role.yml
- 227 cd roles
- 228 ls
- 229 cd motd
- 230 ls
- 231 cat defaults/main.yml
- 232 cat tasks/main.yml
- 233 vim tasks/main.yml
- 234 vim templates/motd.j2
- 235 pwd
- 236 cd ../..
- 237 ansible-playbook motd-role.yml
- 238 ansible ansible2 -a "cat /etc/motd"
- 239 cd ..
- 240 ls
- 241 cd roles
- 242 ls
- 243 vim pretasks.yml
- 244 ansible-playbook pretasks.yml
- 245 sudo dnf install rhel-system-roles
- 246 cd /usr/share/doc/rhel-system-roles/
- 247 ls
- 248 cd timesync/
- 249 ls
- 250 vim example-single-pool-playbook.yml
- 251 cp example-single-pool-playbook.yml ~/ansiblein3weeks/roles/
- 252 cd ../selinux/
- 253 ls
- 254 vim example-selinux-playbook.yml
- 255 cp example-selinux-playbook.yml ~/ansiblein3weeks/roles/
- 256 cd ~/ansiblein3weeks/roles/
- 257 vim example-selinux-playbook.yml
- 258 ansible-playbook example-selinux-playbook.yml
- 259 ansible ansible1 -a "ls -lZd /tmp/test_dir"
- 260 cd
- 261 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement