Comments (5)
I've posted it here because I've just found out by inspecting the script that we can pass some options to raspi-config (very few) but they are undocumented so I tough it might help ;)
Given it accepts few options in the end we still have to manually run raspi-config in a way or another
from ansible-playground.
Thanks for opening the issue. I know, that some of these things can be automated, just didn't add them yet. I'll leave this issue open as a reminder ;)
from ansible-playground.
just started investigating ansible for setting up raspberry Pis. was gonna roll my own, but might as well start here. 👍
BTW, the source code for raspi-config
has few built-in "non-interactive options" as you point out ( https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config#L1439-L1474 )
-- and there is only one additional "supported" option --apply-os-config
However, it looks like any routine in raspi-config
can be invoked at the command line using nonint
? From the source
for i in $*
do
case $i in
...
nonint)
INTERACTIVE=False
$@
;;
and
nonint() {
$*
}
And some of them are instrumented to be used that way, while others could be made to work. For example, I tested with:
sudo raspi-config nonint do_hostname rpi2
And it worked! So might be worth exploring further...
from ansible-playground.
It looks like https://github.com/mikolak-net/ansible-raspi-config is already doing this.
from ansible-playground.
I added a few of these raspi-config
hooks to my raspi ansible as well https://github.com/idcrook/raspberry-pi-rotary-phone/blob/master/roles/raspbian-maintenance/tasks/raspi-config.yml
Note: Recent versions of Raspbian jessie automatically, upon first boot, perform the resize filesystem task, and reboot themselves, so I've found the expand fs to be no longer necessary for that.
from ansible-playground.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-playground.