ansible anyone?
asked 2017-07-30 00:02:23 +0300
This post is a wiki. Anyone with karma >75 is welcome to improve it.
After this silly 2.1.1.23->24 crash and recover I wonder if it would be possible to manage all my Sailfish devices via ansible. Technically they have all the things you need as an ansible client:
- ssh
- python
- a method to su (devel-su)
- a package managing system (pkcon/ssu)
but for the last: does anyone created a become-method for devel-su (same with pkcon). Otherwise: what about using sudo? sudo vs. devel-su?
I am thinking about methods/roles to:
- backup and recover configs
- create vpn configs
- create wifi settings (here eap-tls)
- modify connman settings (own status urls)
- creating special links (like ~/sdcard, symbolic configuration links into - syncthing - directories)
- syncthing
- upgrade via ssu/version
- manage installed packages
- whatever
it sounds interesting. especially if cookbooks become public... ;)
zlutor ( 2017-07-30 13:30:33 +0300 )edityeah - some playbook/role-set on github so that everyone can build the own setup. Start up, devel mode, usb connection and start up a master playbook...
cy8aer ( 2017-07-30 13:43:06 +0300 )editI now have a role to get all my openvpn stuff to the phone. Unfortunately I am stuck with the su stuff. Otherwise I would be able to do the connman configuration with ansible too. Dream: Just start the playbook and the tunnel is ready for use.
cy8aer ( 2017-07-31 12:35:50 +0300 )edit