diff --git a/.gitignore b/.gitignore index 718c46c..dad4c03 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ ios_devices/device_backups linux-ubuntu/.DS_Store +ios_devices/.DS_Store +.DS_Store diff --git a/ios_devices/device_audit.yml b/ios_devices/device_audit.yml index 7feb77e..e9733a3 100644 --- a/ios_devices/device_audit.yml +++ b/ios_devices/device_audit.yml @@ -19,14 +19,14 @@ debug: msg: "{{ current_config.ansible_facts.ansible_net_hostname }} is reachable and the OS is {{ current_config.ansible_facts.ansible_net_version }}. SN is {{ current_config.ansible_facts.ansible_net_serialnum }}. Model is {{current_config.ansible_facts.ansible_net_model }}" - - name: Collect interface, routing and IOX runtime information + - name: Collect interface, routing and device runtime information ios_command: commands: - show ip interface brief - show interface description - show ip route - show ip arp - - show iox + - show version register: runtime_information @@ -46,12 +46,6 @@ debug: var: runtime_information.stdout_lines[3] - - name: Print IOx information + - name: Print device indormation debug: - var: runtime_information.stdout_lines[4] - - - - - - \ No newline at end of file + var: runtime_information.stdout_lines[4] \ No newline at end of file diff --git a/ios_devices/test_device_audit.yml b/ios_devices/test_device_audit.yml deleted file mode 100644 index b8094ca..0000000 --- a/ios_devices/test_device_audit.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -## Playbook for reading and printing device information - -- name: Collect device facts and print formatted and unformatted information - hosts: baguleykit - gather_facts: false - connection: network_cli - roles: - - common - - tasks: - - - name: Collect device configuration - ios_facts: - gather_subset: all - register: current_config - - - name: Print device identity info - debug: - msg: "{{ current_config.ansible_facts.ansible_net_hostname }} is reachable and the OS is {{ current_config.ansible_facts.ansible_net_version }}. SN is {{ current_config.ansible_facts.ansible_net_serialnum }}. Model is {{current_config.ansible_facts.ansible_net_model }}" - - - name: Print contents of current_config object - debug: - var: current_config - - - - - \ No newline at end of file diff --git a/ios_devices/test_show_version.yml b/ios_devices/test_show_version.yml deleted file mode 100644 index 49148c5..0000000 --- a/ios_devices/test_show_version.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- - -- name: Test playbook - reads and prints device info - hosts: baguleykit - gather_facts: false - connection: network_cli - roles: - - common - - tasks: - - - name: Run "show version" command on devices - ios_command: - commands: show version - register: output - - - name: Print the output of "show version" - debug: - var: output.stdout_lines \ No newline at end of file diff --git a/linux-ubuntu/inventory.yml b/linux-ubuntu/inventory.yml index 67cf28f..5180ecd 100644 --- a/linux-ubuntu/inventory.yml +++ b/linux-ubuntu/inventory.yml @@ -1,3 +1,4 @@ all: hosts: - 172.16.1.112: \ No newline at end of file + 172.16.1.112: + 10.221.0.104: \ No newline at end of file diff --git a/linux-ubuntu/prestage.yml b/linux-ubuntu/prestage.yml index 7cbbcff..68aacfb 100644 --- a/linux-ubuntu/prestage.yml +++ b/linux-ubuntu/prestage.yml @@ -23,6 +23,7 @@ - tftpd-hpa - ntp - ufw + - xrdp - name: Create a new regular user with sudo privileges user: @@ -54,6 +55,15 @@ proto: udp - port: '23' proto: tcp + - port: '3389' + proto: tcp + - port: '5140' + proto: tcp + - port: '5141' + proto: tcp + - port: '5142' + proto: tcp + - name: UFW - Deny all other incoming traffic by default ufw: @@ -63,7 +73,7 @@ - name: Block all IPv6 incoming connections ufw: - rule: block + rule: deny direction: in proto: ipv6