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