Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control ansiblefundamentals]$ history
- 1 sudo vim /etc/hosts
- 2 ssh ansible1
- 3 ssh ansible2
- 4 ssh control
- 5 sudo dnf install ansible-core
- 6 ansible --version
- 7 id
- 8 sudo ls -l /root
- 9 cat /etc/hosts
- 10 ping ansible1
- 11 ls -l /etc/ansible/hosts
- 12 ansible --version
- 13 history
- 14 sudo systemctl status sshd
- 15 sudo rpm -qa | grep python
- 16 sudo firewall-cmd --list-all
- 17 cat > inventory <<EOF
- ansible1
- ansible2
- EOF
- 18 cat inventory
- 19 ansible -i inventory all -u root -k -m command -a "useradd bob"
- 20 ansible -i inventory all -u root -k -m command -a "id bob"
- 21 ansible -i inventory all -u ansible -k -b -K -m command -a "useradd linda"
- 22 sudo useradd bob
- 23 sudo -i
- 24 ansible -i inventory all -u ansible -k -m command -a "rpm -qa | grep bash"
- 25 ansible -i inventory all -u ansible -k -m shell -a "rpm -qa | grep bash"
- 26 ansible -i inventory all -u root -k -m shell -a "echo password | passwd --stdin ansible"
- 27 sudo dnf install git
- 28 git clone https://github.com/sandervanvugt/ansiblefundamentals
- 29 ansiblefundamentals/countdown 12
- 30 history
- 31 ansible all -i inventory -u ansible -k -m command -a "whoami"
- 32 ansible all -i inventory -u ansible -k -m command -a "sudo ls -l /root"
- 33 ansible all -i inventory -u ansible -k -b -K -m command -a "ls -l /root"
- 34 ansible all -i inventory -u root -k -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 35 ansible all -i inventory -u ansible -k -b -m command -a "ls -l /root"
- 36 ansible-doc copy
- 37 ssh-keygen
- 38 ssh-copy-id ansible1
- 39 ssh-copy-id ansible2
- 40 ansible all -i inventory -u ansible -b -m command -a "ls -l /root"
- 41 history
- 42 cd ansiblefundamentals/
- 43 vim ansible.cfg
- 44 ansible all -a "whoami"
- 45 cp ../inventory .
- 46 ansible all -a "ls -l /root"
- 47 ansible-doc -l
- 48 ansible-doc -l | wc
- 49 ansible-doc copy
- 50 ansible-doc -l
- 51 ansible ansible1 -m package -a "name=nmap"
- 52 ansible all -m ping
- 53 ansible all -m user -a "name=lisa"
- 54 ansible all -m command -a "id lisa"
- 55 ansible all -m user -a "name=lisa state=absent"
- 56 ansible all -m command -a "id lisa"
- 57 ansible all -m copy "src=/etc/hosts dest=/etc/hosts"
- 58 ansible all -m copy -a "src=/etc/hosts dest=/etc/hosts"
- 59 ansible all -m package -a "name=nmap state=latest"
- 60 ansible all -m service -a "name=httpd state=started enabled=yes"
- 61 ansible all -m command -a "useradd jason"
- 62 ansible all -m user -a "name=jason"
- 63 ls
- 64 vim install_and_start_httpt.yaml
- 65 ansible-doc service
- 66 ansible-playbook install_and_start_httpt.yaml
- 67 ./countdown 12
- 68 ansible-playbook -v install_and_start_httpt.yaml
- 69 ansible-playbook -vvvv install_and_start_httpt.yaml
- 70 ansible-playbook --syntax-check install_and_start_httpt.yaml
- 71 ls
- 72 ansible-playbook enforce-selinux.yml
- 73 ansible-galaxy collection install ansible.posix
- 74 ansible-doc -l
- 75 vim enforce-selinux.yml
- 76 ansible-playbook enforce-selinux.yml
- 77 history | grep sudoers.d
- 78 ansible localhost -u root -k -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 79 ansible localhost -u ansible -k -K -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 80 ansible-playbook enforce-selinux.yml
- 81 vim enforce-selinux-simplified.yml
- 82 ansible-playbook enforce-selinux-simplified.yml
- 83 ./countdown 1
- 84 vim run_and_test_httpd.yaml
- 85 ansible-playbook run_and_test_httpd.yaml
- 86 vim run_and_test_httpd.yaml
- 87 ansible-playbook run_and_test_httpd.yaml
- 88 vim run_and_test_httpd.yaml
- 89 ansible all -a "firewall-cmd --list-all"
- 90 ansible-doc firewalld
- 91 vim run_and_test_httpd.yaml
- 92 ansible-playbook run_and_test_httpd.yaml
- 93 ping ansible1
- 94 curl http://ansible1
- 95 vim run_and_test_httpd.yaml
- 96 ansible-playbook run_and_test_httpd.yaml
- 97 curl http://ansible1
- 98 vim run_and_test_httpd.yaml
- 99 ansible-playbook run_and_test_httpd.yaml
- 100 vim multi_play.yaml
- 101 vim variables_example.yaml
- 102 ansible-playbook variables_example.yaml
- 103 ansible-playbook variables_example.yaml -e user=linda
- 104 ansible-playbook variables_example.yaml -e user=linda -v
- 105 ansible-playbook -v variables_example.yaml -e user=linda -v
- 106 vim variables_example.yaml
- 107 ansible-playbook -v variables_example.yaml -e user=linda
- 108 ./countdown 12
- 109 vim gather_facts.yaml
- 110 ansible-playbook gather_facts.yaml | less
- 111 vim old_facts.yaml
- 112 ansible-playbook old_facts.yaml
- 113 vim new_facts.yaml
- 114 ansible-playbook new_facts.yaml
- 115 ls
- 116 vim myvars.yaml
- 117 vim vars_file.yaml
- 118 ansible-playbook vars_file.yaml
- 119 vim vars_file.yaml
- 120 ansible-playbook vars_file.yaml
- 121 mkdir group_vars
- 122 vim group_vars/all
- 123 ansible-playbook vars_file.yaml
- 124 vim vars_file.yaml
- 125 mkdir host_vars
- 126 vim host_vars/ansible1
- 127 vim vars_file.yaml
- 128 ansible-playbook vars_file.yaml
- 129 vim register.yaml
- 130 ansible-playbook register.yaml
- 131 vim loop_packages.yaml
- 132 ansible-playbook loop_packages.yaml
- 133 vim when_test.yaml
- 134 ansible-playbook when_test.yaml
- 135 vim when_register.yaml
- 136 ansible-playbook when_register.yaml
- 137 vim using_handlers.yaml
- 138 ansible-playbook using_handlers.yaml
- 139 vim using_handlers.yaml
- 140 ansible-playbook using_handlers.yaml
- 141 ansible all -m file -a "name=/var/www/html/index.html state=absent"
- 142 ansible-playbook using_handlers.yaml
- 143 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement