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

add an ansible playbook for when you can't use docker #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
- name: install youtube upload
hosts: localhost
tasks:
- name: install python3
ansible.builtin.apt:
name: python3
update_cache: yes
become: yes
- name: install python modules
ansible.builtin.pip:
name:
- google-api-python-client
- oauth2client
- progressbar2
- name: Create a temporary directory
ansible.builtin.file:
path: /ansible-youtube-upload/
state: directory
mode: 0777
become: yes
- name: Download program
ansible.builtin.get_url:
url: https://github.com/tokland/youtube-upload/archive/master.zip
dest: /ansible-youtube-upload/
- name: extract archive
ansible.builtin.unarchive:
src: /ansible-youtube-upload/youtube-upload-master.zip
dest: /ansible-youtube-upload/
- name: execute install script
ansible.builtin.command:
cmd: python3 setup.py install
chdir: /ansible-youtube-upload/youtube-upload-master/
become: yes
- name: Supress the temporary directory
ansible.builtin.file:
path: /ansible-youtube-upload/
state: absent
become: yes