Coder Social home page Coder Social logo

flexget-daemon's People

Contributors

gaieges avatar robgmills avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

robgmills triwats

flexget-daemon's Issues

Active?

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! :)

Error in 'roles/gaieges.flexget-daemon/handlers/main.yml': line 2, column 3

Steps to reproduce

  1. Install playbook with ansible-galaxy:

    ansible-galaxy install gaieges.flexget-daemon -p roles/`
    
  2. Include role in playbook:

    ---
    - hosts: flexget
      become: yes
      roles:
        - role: gaieges.flexget-daemon
          flexget_password: myPassword
    
  3. Run playbook:

ansible-playbook -i 192.168.50.3, -b -u vagrant -k flexget.yml

The Error =O

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

Ansible Vagrantfile fails

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

Steps to reproduce

  1. git clone [email protected]:gaieges/flexget-daemon-role.git
  2. cd flexget-daemon-role
  3. vagrant up

Error

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.

Multi-line flexget_tasks configuration fails schema validation when setting web user password

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?

Error

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": []}

Input values attempted

Straight Yaml (as in the example)

flexget_tasks:
  download-rss:
    rss:
      url: "{{ showrss_rss_feed }}"
      all_entries: no
    all_series: yes
    transmission:
      host: localhost
      port: 9091

Multi-line literal string value

flexget_tasks: |

Single line JSON

flexget_tasks: 
  download-rss: { rss: { url: "{{ showrss_rss_feed }}", all_entries: no }, all_series: yes, transmission: { host: localhost, port: 9091 } }

Output in /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}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.