Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control ansiblefundamentals]$ history
- 1 history
- 2 su -
- 3 sudo ls /root
- 4 sudo dnf install epel-release
- 5 history
- 6 sudo dnf install -y ansible
- 7 ansible --version
- 8 ip a
- 9 sudo vim /etc/hosts
- 10 ip a
- 11 sudo vim /etc/hosts
- 12 ping ansible1
- 13 ping ansible2
- 14 mkdir setup
- 15 cd setup/
- 16 ssh root@ansible1
- 17 ssh root@ansible2
- 18 vim inventory
- 19 ansible -i inventory all -m user -a "name=ansible"
- 20 ansible -i inventory all -m user -a "name=ansible" -u root -k
- 21 ansible -i inventory all -m shell -a "echo password | passwd --stdin ansible" -u root -k
- 22 ssh ansible@ansible1
- 23 history
- 24 ansible-doc user
- 25 ansible -i inventory all -m user -a "name=ansible groups=wheel" -u root -k
- 26 cd ..
- 27 sudo dnf install git
- 28 git clone https://github.com/sandervanvugt/ansiblefundamentals
- 29 cd ansiblefundamentals/
- 30 ls
- 31 git pull
- 32 history
- 33 cd ../setup/
- 34 ansible -i inventory all -m command -a "ls /root" -u ansible -k
- 35 ls /root
- 36 sudo ls /root
- 37 ansible -i inventory all -m command -a "ls /root" -u ansible -k -b
- 38 ansible -i inventory all -m command -a "ls /root" -u ansible -k -b -K
- 39 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible"
- 40 ansible -i inventory all -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible" -u ansible -k -K -b
- 41 ansible -i inventory all -m command -a "ls /root" -u ansible -k -b
- 42 vim ansible.cfg
- 43 history
- 44 cat ansible.cfg
- 45 ansible all -m command -a "ls /root" -k
- 46 cd
- 47 ssh-keygen
- 48 ssh-copy-id ansible1
- 49 ssh-copy-id ansible2
- 50 ansible all -m command -a "ls /root"
- 51 cd setup/
- 52 ls
- 53 ansible all -m command -a "ls /root"
- 54 history
- 55 sudo vim /etc/ansible/ansible.cfg
- 56 history
- 57 cat inventory
- 58 history | grep ansible
- 59 ansible-doc -l
- 60 ansible-doc -l | wc
- 61 ansible --version
- 62 ### ansible all -m raw -a "yum install python"
- 63 cat ansible.cfg
- 64 cat /etc/ansible/ansible.cfg
- 65 ansible ansible1 -m command -a "rpm -qa | grep python"
- 66 ansible ansible1 -m shell -a "rpm -qa | grep python"
- 67 ansible all -m copy -a 'content="hello world" dest=/etc/hello"
- 68 ansible all -m copy -a 'content="hello world" dest=/etc/hello'
- 69 ansible all -a "cat /etc/hello"
- 70 ansibe all -m package -a "name=nmap state=latest"
- 71 ansible all -m package -a "name=nmap state=latest"
- 72 ansible all -m service -a "name=httpd state=started"
- 73 ansible all -vvv -m service -a "name=httpd state=started"
- 74 ansible all -m copy -a "src=/etc/hosts dest=/etc/hosts"
- 75 ansible all -m service -a "name=httpd state=started"
- 76 history
- 77 ansible ansible1 -m user -a "name=lisa"
- 78 ansible ansible1 -m command -a "useradd linda"
- 79 ansible ansible1 -m user -a "name=linda"
- 80 vim ~/.vimrc
- 81 cp * ../ansiblefundamentals/
- 82 cd ../ansiblefundamentals/
- 83 ls
- 84 history
- 85 cat ~/.vimrc
- 86 vim install_and_start_httpt.yaml
- 87 ansible-playbook install_and_start_httpt.yaml
- 88 vim install_and_start_httpt.yaml
- 89 ansible-playbook install_and_start_httpt.yaml
- 90 vim install_and_start_httpt.yaml
- 91 rpm -qa | grep systemd | less
- 92 vim install_and_start_httpt.yaml
- 93 cd ..
- 94 git clone https://github.com/sandervanvugt/ansiblecvc
- 95 cd ansiblecvc/kubernetes/
- 96 vim kube-cluster-setup.yaml
- 97 cd -
- 98 cd ansiblefundamentals/
- 99 vim run_and_test_httpd.yaml
- 100 ansible-playbook run_and_test_httpd.yaml
- 101 vim multi_play.yaml
- 102 ansible-doc -t help
- 103 ansible-doc -t inventory -l
- 104 ansible-doc -t inventory toml
- 105 less /usr/lib/python3.6/site-packages/ansible/plugins/inventory/toml.py
- 106 vim variables_example.yaml
- 107 ansible-playbook variables_example.yaml
- 108*
- 109 vim variables_example.yaml
- 110 ansible-doc user
- 111 ansible ansible1 -m setup | less
- 112 history
- 113 ansible-doc -l | grep facts
- 114 history
- 115 vim gather_facts.yaml
- 116 ansible-playbook gather_facts.yaml
- 117 history
- 118 ansible ansible1 -m setup | less
- 119 vim old_facts.yaml
- 120 ansible-playbook old_facts.yaml
- 121 vim new_facts.yaml
- 122 ansible-playbook new_facts.yaml
- 123 vim myvars.yaml
- 124 vim vars_file.yaml
- 125 ansible-playbook vars_file.yaml
- 126 vim vars_file.yaml
- 127 ansible-playbook vars_file.yaml
- 128 ls
- 129 mkdir localhost
- 130 rmdir localhost
- 131 mkdir host_vars
- 132 vim host_vars/localhost
- 133 vim myvars.yaml
- 134 vim vars_file.yaml
- 135 ansible-playbook vars_file.yaml
- 136 ls
- 137 vim vars_file.yaml
- 138 mkdir group_vars
- 139 vim group_vars/all
- 140 vim vars_file.yaml
- 141 ansible-playbook vars_file.yaml
- 142 vim register.yaml
- 143 ansible-playbook register.yaml
- 144 cat register.yaml
- 145 vim loop_packages.yaml
- 146 ansible-playbook loop_packages.yaml
- 147 vim loop_on_vars.yaml
- 148 cat vars/users-list
- 149 vim loop_on_vars.yaml
- 150 ansible-playbook loop_on_vars.yaml
- 151 vim when_test.yaml
- 152 lsblk
- 153 vim when_test.yaml
- 154 ansible-playbook when_test.yaml
- 155 vim when_register.yaml
- 156 ansible-playbook when_register.yaml
- 157 vim when_complex.yaml
- 158 ansible-playbook when_complex.yaml
- 159 cat using_handlers.yaml
- 160 vim using_handlers.yaml
- 161 ansible-playbook using_handlers.yaml
- 162 vim using_handlers.yaml
- 163 ansible-playbook using_handlers.yaml
- 164 ansible all -m file -a "name=/var/www/html/index.html state=absent"
- 165 ansible-playbook using_handlers.yaml
- 166 history
Advertisement
Add Comment
Please, Sign In to add comment