GithubHelp home page GithubHelp logo

ansible-meltdown-spectre-inventory's People

Stargazers

 avatar  avatar  avatar

ansible-meltdown-spectre-inventory's Issues

Sudo required on CentOS 7

First of all, thank you so much for this tool.

Testing on a single host, I needed to become: yes on the pti_command in order to get this to work:

TASK [Check if Kernel PTI is enabled] ******************************************
task path: /Users/alan/Sites/dmsimard_ansible-meltdown-spectre-inventory/get-inventory.yml:26
ok: [35.157.187.58] => {"changed": false, "cmd": "grep 1 /sys/kernel/debug/x86/pti_enabled", "delta": "0:00:00.004562", "end": "2018-01-12 15:50:43.759072", "failed_when_result": false, "msg": "non-zero return code", "rc": 2, "start": "2018-01-12 15:50:43.754510", "stderr": "grep: /sys/kernel/debug/x86/pti_enabled: Permission denied", "stderr_lines": ["grep: /sys/kernel/debug/x86/pti_enabled: Permission denied"], "stdout": "", "stdout_lines": []}

At first I added --become to my ansible-playbook command, but I got:

TASK [Create inventory file for meltdown] **************************************
task path: /Users/alan/Sites/dmsimard_ansible-meltdown-spectre-inventory/get-inventory.yml:10
fatal: [35.157.187.58]: FAILED! => {"msg": "Failed to get information on remote file (/tmp/meltdown-inventory): sudo: a password is required\n"}

So, with this change, it's working for checking all of our instances, though I happen to know that my --user has sudo privileges (which may not be universal for a tool intended for wide release):

     - name: Check if Kernel PTI is enabled
       shell: |
         {{ pti_command }}
       changed_when: false
       failed_when: false
       register: pti_enabled
       when: "'GenuineIntel' in ansible_processor"
+      become: true

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.