https://github.com/alexandergrooff/lineinfile-python
Ansible's lineinfile module adapted in Python
https://github.com/alexandergrooff/lineinfile-python
Last synced: 10 months ago
JSON representation
Ansible's lineinfile module adapted in Python
- Host: GitHub
- URL: https://github.com/alexandergrooff/lineinfile-python
- Owner: AlexanderGrooff
- Created: 2019-07-30T21:25:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T21:35:36.000Z (almost 7 years ago)
- Last Synced: 2025-03-27T16:52:13.289Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html)
in [Ansible](https://www.ansible.com/).
## List of features
The list of features supported in this adaptation is directly taken from the `lineinfile` module documentation.
- [ ] Attributes
- [ ] Backrefs
- [ ] Backup
- [x] Create
- [ ] Firstmatch
- [ ] Group
- [ ] Insertafter
- [ ] Insertbefore
- [ ] Mode
- [ ] Other
- [ ] Owner
- [x] 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))
```