Giter Site home page Giter Site logo

ansible-power-linux's Introduction

IBM Power Systems Linux Collection

Scope

The IBM Power Systems Linux Automation a a central place to provide modules that support Linux automation on Power. The content here helps manage workloads on Power infrastructure as part of your wider enterprise automation strategy.

The IBM Power Systems Linux Automation* is currently supported via

Currently the Linux modules validated on Power systesm including Ansible.Posix collection. It is a collection written by the Ansible Core Team. More information can be found at

Ansible.Posix https://docs.ansible.com/ansible/latest/collections/ansible/posix/index.html

Ansible

  • Requires Ansible 2.9 or newer
  • For help installing Ansible, refer to the [Installing Ansible] section of the Ansible Documentation
  • Requires Python 2.7 or newer

Resources

Documentation of modules is generated on [GitHub Pages][pages].

Examples

Build kernel ( see install_kernel.yaml for full kernel install and build playbook )

  • name: apply optional patch file(s) shell: "git apply {{ item }}" with_items: "{{ patch_files.files | map(attribute='path') | list }}" when: patches is defined or all patches is defined args: chdir: /tmp/kernel-download

  • name: install kernel shell: "{{ item }}" with_items:

    • make olddefconfig
    • make -j 20
    • make modules
    • make modules_install
    • make install register: out args: chdir: /tmp/kernel-download

Example SELinux

selinux โ€“ Change policy and state of SELinux

  • name: Enable SELinux selinux: policy: targeted state: enforcing

  • name: Put SELinux in permissive mode, logging actions that would be blocked. selinux: policy: targeted state: permissive

  • name: Disable SELinux selinux: state: disabled

Call this playbook as selinux_setting.yml. In order to get this playbook to work, you should have the ansible-collection-ansible-posix package installed.

$ sudo dnf install ansible-collection-ansible-posix

Then you can run the playbook with ansible-playbook command.

$ ansible-playbook selinux_enforcing.yml

License & Authors

If you would like to see the detailed LICENSE click here.

Copyright:: 2021- IBM, Inc

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Authors:

ansible-power-linux's People

Contributors

mcao-zz avatar

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.