Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ansible@control webservers]$ history
- 1 history
- 2 exit
- 3 cd rhce8-live/
- 4 ./countdown 12
- 5 cat todo.txt
- 6 id
- 7 sudo ls /root
- 8 sudo yum install git vim -y
- 9 which dnf
- 10 which yum
- 11 ls -l /usr/bin/yum
- 12 git clone https://github.com/sandervanvugt/rhce8-live
- 13 git clone https://github.com/sandervanvugt/rhce8-book
- 14 ls
- 15 cd rhce8live
- 16 cd rhce8-live
- 17 ls
- 18 cd ../rhce8-book/
- 19 ls
- 20 sudo yum install epel-release
- 21 sudo yum install ansible
- 22 sudo -i
- 23 ssh-keygen
- 24 ls .ssh
- 25 ls ~/.ssh
- 26 ssh-copy-id ansible1
- 27 ssh-copy-id ansible2
- 28 ssh ansible1
- 29 ssh ansible2
- 30 ansible --version
- 31 cd
- 32 vim todo.txt
- 33 history
- 34 ls
- 35 cd rhce8-live/
- 36 ls
- 37 cd lesson2/
- 38 ls
- 39 vim inventory
- 40 vim /etc/ansible/hosts
- 41 cd ..
- 42 ansible -i inventory all --list-hosts
- 43 ls
- 44 cd lesson2/
- 45 ls
- 46 ansible -i inventory all --list-hosts
- 47 ansible file --list-hosts
- 48 cat inventory
- 49 ansible db --list-hosts
- 50 cat ansible.cfg
- 51 grep -i inventory /etc/ansible/ansible.cfg
- 52 ansible -i inventory ungrouped --list-hosts
- 53 cat inventory
- 54 ls
- 55 vim pascal-new.py
- 56 ./pascal-new.py --list
- 57 which python3
- 58 vim pascal-new.py
- 59 ./pascal-new.py --list
- 60 vim pascal.py
- 61 ./pascal.py --list
- 62 ansible --version
- 63 cd ..
- 64 ansible --version
- 65 cd -
- 66 vim ansible.cfg
- 67 vim /etc/ansible/ansible.cfg
- 68 cat /etc/redhat-release
- 69 ansible all -m command -a "useradd lisa"
- 70 cat inventory
- 71 ansible all -m command -a "useradd lisa" -K
- 72 ansible all -m user -a "name=lisa" -K
- 73 ansible all -m command -a "id lisa"
- 74 ansible all -m command -a "id lisa" -K
- 75 history
- 76 ansible all -m command -a "rpm -qa | grep ssh" -K
- 77 ansible all -m shell -a "rpm -qa | grep ssh" -K
- 78 ansible all -m raw -a "rpm -qa | grep ssh" -K
- 79 ansible-doc copy
- 80 ansible all -m copy -a "src=/etc/sudoers.d/ansible dest=/etc/sudoers.d/ansible" -K
- 81 ls -l /etc/sudoers.d/
- 82 sudo ls -l /etc/sudoers.d/
- 83 sudo ansible all -m copy -a "src=/etc/sudoers.d/ansible dest=/etc/sudoers.d/ansible" -K
- 84 sudo cp /etc/sudoers.d/ansible /tmp/ansible
- 85 ansible all -m copy -a "src=/tmp/ansible dest=/etc/sudoers.d/ansible" -K
- 86 ansible all -m user -a "name=betty"
- 87 history
- 88 ansible-doc -l
- 89 ansible-doc user
- 90 ansible-doc -l
- 91 nsible-doc -lqq
- 92 reset
- 93 ansible-doc -l | wc
- 94 ansible all -m ping
- 95 ansible all -m service -a "name=httpd state=started"
- 96 ansible all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 97 ansible all -m command -a "cat /etc/sudoers.d/ansible"
- 98 ANSIBLE_KEEP_REMOTE_FILES=1 ansible all -m ping
- 99 ANSIBLE_KEEP_REMOTE_FILES=1 ansible -vvvv all -m ping
- 100 ssh ansible2
- 101 exit
- 102 cd rhce8-live/
- 103 history
- 104 ansible all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 105 cd lesson2/
- 106 ansible all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 107 history
- 108 vim ~/.vimrc
- 109 ls
- 110 cd ../lesson4
- 111 ls
- 112 vim vsftpd.yml
- 113 ansible-playbook vsftpd.yml
- 114 cat vsftpd.yml
- 115 ls
- 116 ansible-playbook vsftpd-err.yml
- 117 vim vsftpd-err.yml
- 118 ansible-playbook vsftpd-err.yml
- 119 vim vsftpd-err.yml
- 120 ansible-playbook -v vsftpd-err.yml
- 121 ansible-playbook -vv vsftpd-err.yml
- 122 ansible-playbook -vvvv vsftpd-err.yml
- 123 ../countdown 12
- 124 ls
- 125 vim uninstall-httpd.yml
- 126 sudo yum provides */ansible-lint
- 127 sudo yum install python3-ansible-lint
- 128 sudo yum repolist
- 129 cd ../lesson5/
- 130 ls
- 131 vim user.yml
- 132 ansible-playbook user.yml
- 133 vim inventory
- 134 ansible-playbook user.yml -e user=bob
- 135 ansible-config --help
- 136 ansible-config view
- 137 ansible-config list
- 138 ansible-config dump
- 139 ls
- 140 cd webservers/
- 141 ls
- 142 vim site.yml
- 143 ls group_vars/
- 144 cat group_vars/lamp
- 145 cat inventory
- 146 ansible-playbook site.yml
- 147 vim site.yml
- 148 ls
- 149 mkdir host_vars
- 150 cat inventory
- 151 vim host_vars/ansible1.example.com
- 152 cat group_vars/lamp
- 153 ansible-playbook site.yml
- 154 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement