I am making an ansible project for setting up the environment. And I'm stuck on a seemingly simple task - I need to create the Midnight commander config after installing it. The problem is that the config is generated the first time the application is launched. But I need to do without it. I cannot load a pre-prepared config, because it differs depending on the distributions and their versions, and sometimes a lot. I thought to run somehow mc through ansible, but haven't figured out how yet. Maybe anyone has smart thoughts?
1
There are 1 best solutions below
Related Questions in ANSIBLE
- Kubernetes cluster on GCE connection refused error
- editing pass option in /etc/fstab with ansible
- Ansible role analysis with Checkov - facts evaluation?
- read contents from a file on git using ansible
- Upgrade Gitlab-runner package in amazon Linux 2 and Ubuntu 22.04 through Ansible
- Ansible - Copy Same File to Many Different Paths
- Execute handler as idempotent approach
- How to discern, whether Ansible runs in color mode?
- ansible + packer +windows ami giving "msg": "winrm or requests is not installed: No module named 'winrm'"
- Moving Template or OVA to Datastore using vCenter API
- Ansible - Trouble with conditional
- Increment number on each node with excluding one
- How can I run a command before the playbook when using ansible ee?
- Connect ssh to cisco switch with ansible
- How to use the Ansible Shell module on Linux to start Node.js server in the background?
Related Questions in MC
- How to change directory in Midnight Commander on Windows, using functions
- Midnight Commander. Searching current directory
- How to make Midnight Commander exit to its current directory on MAC
- Persistent External Panelize in Midnight Commander?
- Midnight commander opens zip archives with image/PDF viewer instead of listing the contents
- Midnight Commander Chmod command
- How to make Midnight Commander open file with default application in Windows
- Highlighting Syntax in mcedit for assembly
- How to generate MC config via ansible
- Is there a Vim plugin that would TAB-complete symbols from CTags index?
- What are the "a1", "c1" bindings in mc.keymap (Midnight Commander)?
- Is there a command to move file pointers across unRAID shares on the same drive?
- Viewing typescript .ts files in Midnight Commander
- libtool is excessively copying objects to resolve name conflicts
- mc update 4.8.25 changed folder of shell commands
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I tried to do as the respected @phd advises, in the end, something went wrong on my old server with centos7. I was almost desperate and wanted to add to the readme the need to run mc to generate the config, but this morning I got a possibly brilliant idea - to fill in the config only with the parameters that I want to change. As a result, I made a config with the parameters skin, command_prompt and a few more, loaded it and it works! Perhaps I haven't noticed something yet, but it looks like all these parameters are optional and if mc doesn't find them, it sets the default value (and it looks like it can get these values from somewhere else).
upd This is victory. When opening MC with my config - it overwrites it, adding missing parameters there. I'm happy.