mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Template Codex instructions path
This commit is contained in:
@@ -68,10 +68,16 @@ ai_agents_dotfiles:
|
|||||||
dest: .config/ai
|
dest: .config/ai
|
||||||
mode: preserve
|
mode: preserve
|
||||||
- name: Gemini CLI config
|
- name: Gemini CLI config
|
||||||
src: .gemini
|
src: .gemini/settings.json
|
||||||
dest: .gemini
|
dest: .gemini/settings.json
|
||||||
mode: preserve
|
mode: "0644"
|
||||||
- name: OpenCode config
|
- name: OpenCode config
|
||||||
src: .config/opencode
|
src: .config/opencode
|
||||||
dest: .config/opencode
|
dest: .config/opencode
|
||||||
mode: preserve
|
mode: preserve
|
||||||
|
|
||||||
|
ai_agents_templates:
|
||||||
|
- name: Codex config
|
||||||
|
src: .codex/config.toml.j2
|
||||||
|
dest: .codex/config.toml
|
||||||
|
mode: "0644"
|
||||||
|
|||||||
@@ -37,6 +37,30 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
|
|
||||||
|
- name: Ensure AI config directories exist
|
||||||
|
tags: [dotfiles, dotfiles:common]
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ effective_user_home }}/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ effective_username }}"
|
||||||
|
group: "{{ effective_user_group }}"
|
||||||
|
mode: "0755"
|
||||||
|
loop:
|
||||||
|
- .codex
|
||||||
|
when: (ai_agents_templates | default([])) | length > 0
|
||||||
|
|
||||||
|
- name: Render AI agent templates
|
||||||
|
tags: [dotfiles, dotfiles:common]
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ playbook_dir }}/../dotfiles/common/{{ item.src }}"
|
||||||
|
dest: "{{ effective_user_home }}/{{ item.dest }}"
|
||||||
|
owner: "{{ effective_username }}"
|
||||||
|
group: "{{ effective_user_group }}"
|
||||||
|
mode: "{{ item.mode }}"
|
||||||
|
loop: "{{ ai_agents_templates | default([]) }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.dest }}"
|
||||||
|
|
||||||
- name: Refresh bat cache
|
- name: Refresh bat cache
|
||||||
tags: [dotfiles, dotfiles:common]
|
tags: [dotfiles, dotfiles:common]
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
16
dotfiles/common/.codex/config.toml.j2
Normal file
16
dotfiles/common/.codex/config.toml.j2
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
model = "gpt-5.5"
|
||||||
|
model_reasoning_effort = "medium"
|
||||||
|
|
||||||
|
model_instructions_file = "{{ effective_user_home }}/.config/ai/bootstrap.md"
|
||||||
|
|
||||||
|
[projects."/home/fscotto/AnsiblePlaybook"]
|
||||||
|
trust_level = "trusted"
|
||||||
|
|
||||||
|
[tui]
|
||||||
|
theme = "coldark-dark"
|
||||||
|
|
||||||
|
[tui.model_availability_nux]
|
||||||
|
"gpt-5.5" = 3
|
||||||
|
|
||||||
|
[features]
|
||||||
|
memories = true
|
||||||
Reference in New Issue
Block a user