Remove private key file reference from ansible.cfg; update hosts file with absolute path for private key; add playbooks for installing tools and updating OS
This commit is contained in:
18
ansible/install_tools.yml
Normal file
18
ansible/install_tools.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Install favorite tools (vim, telnet, curl)
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Ensure vim, telnet, and curl are installed
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- vim
|
||||
- telnet
|
||||
- curl
|
||||
state: present
|
||||
update_cache: yes
|
||||
register: install_tools_result
|
||||
|
||||
- name: Show install result (full)
|
||||
ansible.builtin.debug:
|
||||
var: install_tools_result
|
||||
Reference in New Issue
Block a user