From 7b9f96efe0e802d3176ea674f9827eba8f1b08d0 Mon Sep 17 00:00:00 2001 From: ac_w Date: Tue, 11 May 2021 10:00:49 -0400 Subject: [PATCH] Added a comment: Solution --- ...ent_1_e3b9539939a8b0dd3f912a3410dd27b2._comment | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/forum/Non-interactive_setup/comment_1_e3b9539939a8b0dd3f912a3410dd27b2._comment diff --git a/doc/forum/Non-interactive_setup/comment_1_e3b9539939a8b0dd3f912a3410dd27b2._comment b/doc/forum/Non-interactive_setup/comment_1_e3b9539939a8b0dd3f912a3410dd27b2._comment new file mode 100644 index 000000000..6e8b67c05 --- /dev/null +++ b/doc/forum/Non-interactive_setup/comment_1_e3b9539939a8b0dd3f912a3410dd27b2._comment @@ -0,0 +1,14 @@ +[[!comment format=mdwn + username="ac_w" + avatar="http://cdn.libravatar.org/avatar/a76f89f70fffde5fbdacaa2a0438d8d9" + subject="Solution" + date="2021-05-11T14:00:34Z" + content=""" +I didn't fully understand it at first, but when you do `ikiwiki --setup /etc/ikiwiki/auto.setup`, the user `foo.setup` that is generated is enough to rebuild the wiki from scratch. So from a fresh reinstall the auto.setup step can be avoided if you already have the previous `foo.setup` backed up. + +So on my ansible usecase I just have to keep `foo.setup` as a template, copy it and build the wiki. + +I don't know if this creates a wiki administrator though. I guess it doesn't, since the foo.setup contains no info about it. + +If I really wanted to create an admin and choose its password, I guess I would have to run the `ikiwiki --setup /etc/ikiwiki/auto.setup`, and in this case the `expect` module from ansible would allow me to send the password to fill the prompt automatically (not tested). Seems kinda hacky though. +"""]] -- 2.39.5