Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite apps installation script as an Ansible playbook #5

Open
webknjaz opened this issue Mar 20, 2019 · 2 comments · May be fixed by #6
Open

Rewrite apps installation script as an Ansible playbook #5

webknjaz opened this issue Mar 20, 2019 · 2 comments · May be fixed by #6
Assignees
Labels
enhancement New feature or request

Comments

@webknjaz
Copy link
Member

webknjaz commented Mar 20, 2019

pip install ansible-core --user
  1. create an inventory file with a localhost entry in it with connection=local param
  2. create a playbook install-apps.yml
    it'd look smth like
- name: Install OS-level apps
  hosts: all
  become: yes
  tasks:
  - name: Configure repositories
    apt_repository:
      ...
  - name: Install apps
    apt:
      name:
      - 
      - 
      ...
  1. The invocation would look like:
ansible-playbook -i inventory -K install-apps.yml

Ref: https://docs.ansible.com/ansible/devel/user_guide/index.html
Ref: https://docs.ansible.com/ansible/devel/modules/apt_module.html
Ref: https://docs.ansible.com/ansible/devel/modules/apt_repository_module.html

@webknjaz webknjaz added the enhancement New feature or request label Mar 20, 2019
@RootenberG RootenberG linked a pull request May 27, 2019 that will close this issue
@webknjaz webknjaz assigned l1storez and unassigned RootenberG Jan 30, 2022
@l1storez
Copy link

l1storez commented Aug 5, 2022

Ref: https://docs.ansible.com/ansible/devel/modules/apt_module.html
Ref: https://docs.ansible.com/ansible/devel/modules/apt_repository_module.html
The version of the Ansible documentation you were looking at doesn’t contain that page.
Pls, update broken URLs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants