Git Product home page Git Product logo

ansible-module-grub's People

Contributors

bushvin avatar unconfigured avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-module-grub's Issues

error in code?

On line 352 you call save_config() with no parameters, but function requires 2 of them, thus crashing

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: save_config() takes exactly 2 arguments (1 given)
fatal: [ansible-test-rhel6.cz.nonprod]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_SowVq5/ansible_module_grub.py\", line 360, in <module>\n    main()\n  File \"/tmp/ansible_SowVq5/ansible_module_grub.py\", line 352, in main\n    (result, msg) = grub.save_config()\nTypeError: save_config() takes exactly 2 arguments (1 given)\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

Ansible 2.4 EL6 module error

II just tried this on Ansible 2.4 & EL6 and I got errors :(

  • hosts: all
    gather_facts: yes
    serial: "25%"
    sudo: yes
    tasks:
    • name: set timeout to 22
      grub: timeout=22

Error:

TASK [set timeout to 22] ********************************************************************************************************************************************
fatal: [mal0c0]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to mal0c0 closed.\r\n", "module_stdout": "\r\nTraceback (most recent call last):\r\n File "/tmp/ansible_7xlrIz/ansible_module_grub.py", line 454, in \r\n main()\r\n File "/tmp/ansible_7xlrIz/ansible_module_grub.py", line 441, in main\r\n (rc, changed, msg) = grub.set_timeout()\r\n File "/tmp/ansible_7xlrIz/ansible_module_grub.py", line 392, in set_timeout\r\n return self._grub_set_timeout()\r\n File "/tmp/ansible_7xlrIz/ansible_module_grub.py", line 361, in _grub_set_timeout\r\n if self._grub_save_config(contents) is not True:\r\nNameError: global name 'contents' is not defined\r\n", "msg": "MODULE FAILURE", "rc": 0}

Grub2 detection

It seems like it is not detecting that it is grub2 on ubuntu server 16.04

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.