Update playbook to ask for name of package to be installed
This commit is contained in:
13
install-package.yml
Normal file
13
install-package.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
vars_prompt:
|
||||
- name: package_name
|
||||
prompt: "Enter the name of package to be installed"
|
||||
private: no
|
||||
tasks:
|
||||
- name: Install a package
|
||||
apt:
|
||||
update_cache: true
|
||||
name: "{{ package_name }}"
|
||||
state: present
|
||||
Reference in New Issue
Block a user