AlexanderGrooff / lineinfile-python

Ansible's lineinfile module adapted in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lineinfile Python

I often find myself wanting similar features of the lineinfile module from Ansible, which is why I decided to make a Python adaptation of the lineinfile module in Ansible.

List of features

The list of features supported in this adaptation is directly taken from the lineinfile module documentation.

  • Attributes
  • Backrefs
  • Backup
  • Create
  • Firstmatch
  • Group
  • Insertafter
  • Insertbefore
  • Mode
  • Other
  • Owner
  • Regexp
  • Selevel
  • Serole
  • Setype
  • Seuser
  • Unsafe_writes
  • Validate

Development

git clone git@github.com:AlexanderGrooff/lineinfile-python.git
cd lineinfile-python
mkvirtualenv -a . -p python3 $(basename $(pwd))

About

Ansible's lineinfile module adapted in Python


Languages

Language:Python 100.0%