gaieges / flexget-daemon Goto Github PK
View Code? Open in Web Editor NEWConfigures and enables flexget as a daemon on target
Home Page: https://galaxy.ansible.com/gaieges/flexget-daemon/
Configures and enables flexget as a daemon on target
Home Page: https://galaxy.ansible.com/gaieges/flexget-daemon/
Cloning the repo and launching the provisioning via vagrant doesn't work. I think this is due to the fact that you've cloned your repo to a directory that doesn't match the repo name.
$ vagrant --version
Vagrant 1.8.5
$ ansible --version
ansible 2.1.1.0
config file =
configured module search path = Default w/o overrides
git clone [email protected]:gaieges/flexget-daemon-role.git
cd flexget-daemon-role
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'bento/ubuntu-16.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Setting the name of the VM: flexget-daemon-role_default_1473797912360_15862
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2201 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2201
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => <path/to/home/code>/flexget-daemon-role
==> default: Running provisioner: ansible...
default: Running ansible-playbook...
ERROR! the role 'flexget-daemon' was not found in <path/to/home/code>flexget-daemon-role/tests/roles:<path/to/home/code>/flexget-daemon-role/tests:<path/to/home/code>
The error appears to have been in '<path/to/home/code>/flexget-daemon-role/tests/test.yml': line 4, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- flexget-daemon
^ here
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Install playbook with ansible-galaxy
:
ansible-galaxy install gaieges.flexget-daemon -p roles/`
Include role in playbook:
---
- hosts: flexget
become: yes
roles:
- role: gaieges.flexget-daemon
flexget_password: myPassword
Run playbook:
ansible-playbook -i 192.168.50.3, -b -u vagrant -k flexget.yml
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/Users/rmills/Code/rgm/ansible-playbooks/roles/gaieges.flexget-daemon/handlers/main.yml': line 4, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
โ name: enable flexget service
^ here
The error appears to have been in '/Users/rmills/Code/rgm/ansible-playbooks/roles/gaieges.flexget-daemon/handlers/main.yml': line 4, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
โ name: enable flexget service
^ here
I can't seem to figure out the correct way to provide a value for the flexget_tasks
variable in my playbook. All of the options seem to result in outputting a flat yaml structure that doesn't pass the schema validation step when setting the password for the WebUI user.
My "research" seems to indicate that there's a limitation to Jiinja2 to_yaml
that requires passing it through a second indent
filter or setting the indent property on the to_yaml
/to_nice_yaml
filter.
If you have a working example, can you provide one?
RUNNING HANDLER [gaieges.flexget-daemon : set flexget web password] ************
fatal: [192.168.50.3]: FAILED! => {"changed": true, "cmd": ["/usr/local/bin/flexget", "-c", "/etc/flexget/config.yml", "web", "passwd", "mysecretpassword"], "delta": "0:00:02.298697", "end": "2016-09-13 19:23:00.992113", "failed": true, "rc": 1, "start": "2016-09-13 19:22:58.693416", "stderr": "Could not start manager: Did not pass schema validation.", "stdout": "2016-09-13 19:23 VERBOSE manager Creating new database /etc/flexget/db-config.sqlite - DO NOT INTERUPT ...\n2016-09-13 19:23 CRITICAL manager [/tasks] Got `[{u'transmission': {u'host': u'localhost', u'port': 9091}, u'all_series': True, u'download-rss': None, u'rss': {u'url': u'http://some.com/rss.rss', u'all_entries': False}}]`, expected: dict\n2016-09-13 19:23 CRITICAL manager Failed to load config file: Did not pass schema validation.", "stdout_lines": ["2016-09-13 19:23 VERBOSE manager Creating new database /etc/flexget/db-config.sqlite - DO NOT INTERUPT ...", "2016-09-13 19:23 CRITICAL manager [/tasks] Got `[{u'transmission': {u'host': u'localhost', u'port': 9091}, u'all_series': True, u'download-rss': None, u'rss': {u'url': u'http://some.com/rss.rss', u'all_entries': False}}]`, expected: dict", "2016-09-13 19:23 CRITICAL manager Failed to load config file: Did not pass schema validation."], "warnings": []}
flexget_tasks:
download-rss:
rss:
url: "{{ showrss_rss_feed }}"
all_entries: no
all_series: yes
transmission:
host: localhost
port: 9091
flexget_tasks: |
flexget_tasks:
download-rss: { rss: { url: "{{ showrss_rss_feed }}", all_entries: no }, all_series: yes, transmission: { host: localhost, port: 9091 } }
/etc/flexget/config.yml
In all cases, the output in the config.yml
seemed to be flattened and didn't pass schema validation:
tasks:
download-rss:
all_series: true
rss: {all_entries: false, url: 'http://some.com/rss.rss'}
transmission: {host: localhost, port: 9091}
Hi, I'm looking to get some improvements into this, but I am wondering if you are still actively willing to accept PRs?
Please let me know. I have forked it, but may start fresh to remove fork complexity if it's unlikely to get merged in. Thank you! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.