mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 00:17:10 +00:00
Merge pull request #223 from enigma28/installation-pymodule-update
Installation pymodule update
This commit is contained in:
commit
bb3e764eed
2 changed files with 16 additions and 3 deletions
|
@ -11,6 +11,12 @@ You can run Ansible-NAS from the computer you plan to use for your NAS, or from
|
|||
|
||||
2. Install Ansible:
|
||||
|
||||
`sudo apt update`
|
||||
|
||||
`sudo apt install software-properties-common`
|
||||
|
||||
`sudo apt-add-repository --yes --update ppa:ansible/ansible`
|
||||
|
||||
`sudo apt install ansible`
|
||||
|
||||
3. Clone Ansible-NAS:
|
||||
|
@ -27,4 +33,4 @@ You can run Ansible-NAS from the computer you plan to use for your NAS, or from
|
|||
|
||||
7. Install the dependent roles: `ansible-galaxy install -r requirements.yml` (you might need `sudo` to install Ansible roles).
|
||||
|
||||
8. Run the playbook - something like `ansible-playbook -i inventories/my-ansible-nas/inventory nas.yml -b -K` should do you nicely.
|
||||
8. Run the playbook - something like `ansible-playbook -i inventories/my-ansible-nas/inventory nas.yml -b -K` should do you nicely.
|
||||
|
|
|
@ -6,9 +6,16 @@
|
|||
register: result
|
||||
until: result is succeeded
|
||||
|
||||
- name: 'Install docker-py'
|
||||
- name: 'Remove docker-py python module'
|
||||
pip:
|
||||
name: docker-py
|
||||
state: absent
|
||||
register: result
|
||||
until: result is succeeded
|
||||
|
||||
- name: 'Install docker python module'
|
||||
pip:
|
||||
name: docker
|
||||
state: present
|
||||
register: result
|
||||
until: result is succeeded
|
||||
|
@ -37,4 +44,4 @@
|
|||
state: restarted
|
||||
when: docker_config.changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
- skip_ansible_lint
|
||||
|
|
Loading…
Reference in a new issue