Files
infrastructure/roles/common/tasks/main.yml
Accendit 6b8ac7e0da
All checks were successful
continuous-integration/drone/push Build is passing
Commented out vty lines
2020-05-11 22:30:01 +02:00

33 lines
726 B
YAML

- name: configure login banner
ios_banner:
banner: motd
text: "{{ banner }}"
- name: configure system attributes
ios_system:
hostname: "{{ inventory_hostname }}"
name_servers: "{{ dns_servers }}"
state: present
- name: configure local users
ios_user:
users: "{{ users }}"
update_password: always
# - name: configure vty lines
# ios_config:
# before: "line vty 0 4"
# lines:
# - login local
# - transport input ssh
- name: configure http management
ios_config:
lines:
- no ip http server
- no ip http secure-server
- name: configure interfaces
ios_interfaces:
config: "{{ hostvars[inventory_hostname]['interfaces'] }}"
state: overridden