Coder Social home page Coder Social logo

ansible-odoo-users's Introduction

Users

This role attempt the goal to manage users on Odoo. To use this module, an existing Odoo infrastructure need to be setup prior and credentials information set. This role support three type of action:

  • create: create users based on a list dictionary of dictionary (look at the variable users variable), only some few parameters are required to create single user

  • configure: configure Odoo user's attributes, it's a simple re-writing of user attribute even if the value change or not (look at the users_to_configure variable)

  • delete: simply delete the list of users provided (look at the users_to_delete variable)

Odoo version tested

-> 10.0

Requirements

You need to install python dependancies on odoo host : xmlrpclib

Role Variables

There are a lot of variables, so to see all of them plase check the default/main.yml where i present variable with description and cautions

Dependencies

.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  user: root
  become: yes
  gather_facts: false

  pre_tasks:
    - block:
        - name: "Check connectivity"
         ping: ~
      rescue:
        - debug:
            msg: "Module ping: error"
        - raw: bash -c "test -f /usr/bin/python || (apt-get update && apt-get install python python3 -yqq) || (yum -y install python)"
          register: output
      always:
        - setup: ~

  roles:
    - { role: users, tags: ['create', 'configure'] }

License

BSD

Link for the video tutorial

https://youtu.be/C9XCRwjePBQ

Author Information

ansible-odoo-users's People

Contributors

diranetafen avatar

Watchers

 avatar  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.