Skip to content

Rewrite apps installation script as an Ansible playbook #5

Description

@webknjaz
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions